chrishea 182 Nearly a Posting Virtuoso

They are big enough that they probably have their own gateway. The gateways are probably done by an internet link to one of the cell providers and they probably do the rest. On a small scale, you might be able to do it through a phone but on a large scale that wouldn't be practical.

chrishea 182 Nearly a Posting Virtuoso

Are you developing this because you want to or because you think that you need to? There are some open-source (PHP) systems available that do this sort of thing. They may not do everything that you want (or they may do a lot more) but it is probably a whole lot quicker to take something that does a lot of what you want and make some modifications and additions.

One of the available options is moodle

chrishea 182 Nearly a Posting Virtuoso

It sounds as if you are using a system that has it's own login and timeout processing. This is specific to the system that you are using (e.g. a Forum or a CMS) and even though it may be using PHP session management as part of the timeout processing, that probably isn't what you need to change. You have provided a very vague explanation of your problem. No one will be able to help you unless you provide more details. If you are using a package of some sort, then you may get a quicker answer from a forum that is specific to that system.

chrishea 182 Nearly a Posting Virtuoso

I don't believe that you will be able to do this without signing up with an SMS Gateway service who will do it for you (at a cost). You might be able to hook up your PC to a cell phone and have the cell phone act as your gateway but I don't know for sure that you can do this (or how).

I'd like to believe that there is an intended level of secrecy around this to avoid spam sms messages being sent too easily. There are probably financial reasons as well.

chrishea 182 Nearly a Posting Virtuoso

Your code above doesn't contain any PHP code. The opening line has ASP-type tags (<% %>) but also says language=javascript so I'm suspecting that you didn't define something correctly (but it's just a guess). The rest of the code is just basic html so if it is run it a browser (without the first line) it should work (whether the suffix is .htm, .html or .php).

chrishea 182 Nearly a Posting Virtuoso

This is becoming more like a blog! Went back to an earlier version and almost everything worked ok. The only obvious problem is the positioning under IE and I guess I will need to do some more research on that. As time allows, I will try to figure out where I went wrong previously.

chrishea 182 Nearly a Posting Virtuoso

I've been continuing to research this and I found that Firefox and Chrome (and maybe others) have problems rendering links when they are within <div tags. Not sure why this would be but it seems to make css less useful than it should be. Continuing to figure out an alternative. Tried a <p with the style as a class but it didn't render the page properly.

chrishea 182 Nearly a Posting Virtuoso

Through PHP, I don't believe that you can. For security reasons, you can't get much local information, not even through javascript. There are some ways that get around this a bit but I think you will find that they may rely on activex and only work on IE. The standard way to deal with this is to have them login and identify them that way. There aren't a lot of reasons why you need to care what physical location they are running from. If you have that kind of need, then you may need a client program of some sort on their machine.

chrishea 182 Nearly a Posting Virtuoso

I went back and checked again to be sure and it is a bit different than I presented it above:
- Everything does seem to work in Opera. The layout is good and all of the links work.
- The layout is good in Firefox and Chrome but the links have the problem described above.
- IN IE8, the links all seem to work but the layout is messed up in various ways and the left-side pop-out menu doesn't work well. As you drag the mouse-pointer down the secondary menu list, the menu disappears so it is almost unusable.

Does anyone have some good references for css browser inconsistencies? It looks as if I have violated some specific browser requirements or I need some browser specific code.

chrishea 182 Nearly a Posting Virtuoso

I am classing this as a CSS problem because I don't know what else it could be.

The problem is that when I insert links into a page, only the first one (or maybe the second as in the example below) is recognized as a link (ie the pointer turns into a hand on a mouseover). Even though the links are set up correctly and they are valid and the css is highlighting it as a link, there is no reaction to a mouseover.

This is my first time setting up a page with just CSS. I copied a template that works fine and then changed it. It uses a mix of absolute and relative positioning and I am happy that everything is working as it should be except for this. This is part of a template for a CMS but I don't think any of that is relevant. I can take this same page and change the template back to the original version (that I copied) and all of the links work fine. There were some changes to the index.php file but they weren't significant.

This problem is consistent between my test system and the production server and across a number of different browsers. I read that transparent png backgrounds can cause problems so I removed one that I was using. I also put the CSS through a validator and corrected a few small problems. I have included a link to the CSS below. There is …

chrishea 182 Nearly a Posting Virtuoso

Before trying to sort out the code, are you sure that your web host allows piping mail to php. I know that mine doesn't and that is probably fairly common.

chrishea 182 Nearly a Posting Virtuoso

One way out of this would be to define a variable when you do your initialization (e.g. in your initial index.php module or a config module) for the address of your root directory. In your navigation module, all link addresses would be relative to that root address (e.g. $path_root."/abc/aaa.php"). That way, no matter where you are (or on what version of the site), the addresses are all in relation to a standard starting point for that specific version of the site.

chrishea 182 Nearly a Posting Virtuoso
chrishea 182 Nearly a Posting Virtuoso

Apache won't recognize the module to be a php module unless you give it a .php suffix. Thus, it won't get parsed.

chrishea 182 Nearly a Posting Virtuoso

An include for a URL is possible. the php.ini file has a parm allow_url_include that is normally set to off for security reasons. You should be able to set it on with a local php.ini file (to over-ride the system php.ini file) assuming that your web host hasn't done anything to prevent that. There is also an ini_set command in php that may allow you to enable it from your program (unless somehow blocked by your web host). As mentioned, it does open the door to some security issues so do your research.

chrishea 182 Nearly a Posting Virtuoso

The link below is for an approach that is used for Wordpress but could be adapted for another system.

http://www.mywebsight.ws/2006/08/11/host-multiple-wp-sites-on-one-installation/

chrishea 182 Nearly a Posting Virtuoso

This is a new topic. You should start a new thread.

chrishea 182 Nearly a Posting Virtuoso

If the potential customer is making the decision to follow up on the estimate immediately, then they would click a button, it would open a form where they would provide their contact info and you would then send the email to yourself. In the background, you would pass the estimate numbers from one page to the next as hidden variables or as session variables.

chrishea 182 Nearly a Posting Virtuoso

And the question is?

chrishea 182 Nearly a Posting Virtuoso

Sorry, I don't see the problem with FREE

PHP DataGrid - PHP script for generating data-bound grid control.
Copyright © 2006 - 2010 Advanced Power of PHP

This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License (GNU LGPL) as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version...

chrishea 182 Nearly a Posting Virtuoso

Obviously, you need to store the fact that they have paid in the database and then your other pages (including signup) need to check that they have paid before you let them proceed.

chrishea 182 Nearly a Posting Virtuoso
chrishea 182 Nearly a Posting Virtuoso

I think that you will need to read the file and see if you get anything.

chrishea 182 Nearly a Posting Virtuoso

I got my Asus laptop (2.1 ghz dual core 64 bit with Win 7, 4 gig memory 500 gb drive, 16" screen) for under $600. That's a pretty good price for a pretty good machine. You can certainly pay more for less. It isn't made to be a high performance machine (and I don't do much gaming) but it runs very well (especially compared to my previous HP running Vista). If you can find something off the shelf then you have a much better chance of getting a deal. You might still be better off buying something adequate and then replacing the video card (if it's possible). Desktops are pretty easy to customize. Laptops aren't really intended for that even though it may be possible on some machines.

codingNewB commented: good information +0
chrishea 182 Nearly a Posting Virtuoso

Where you go for this may depend on how much you expect to have to scale up. If you realistically expect to reach the point where you will need one or more dedicated servers, then you need to find a web host that offers that capability and can provide you appropriate facilities at every stage. Many web hosts (only) offer virtual servers and specific packages. That works fine for me. I use ICDSoft because they provide very responsive support,the reliablity and response time is good and the price is reasonable for what you get (which is more than I really need). There are sites that rate web hosts and they do pretty well in the rankings. Their servers are in high-end data centers so that provides another level of assurance. As mentioned however, if I reached the point where a virtual site was running out of steam, I'd have to use a second or third virtual server (if possible) or move to another web host where I could get my own dedicated server. You get a lot of band width and processing power in a virtual server these days so you'll have to do a lot of processing before it runs out.

One thing to beware of. Some web hosts advertise a lot of "unlimited" features but once you start to do a lot of processing you may find yourself throttled or cut off. You need a reliable web host that delivers what they promise. There is …

chrishea 182 Nearly a Posting Virtuoso

If you know when your session is done, you can delete the cookie and see if that does it. If the session just dies without warning (and you don't explicitly delete it)then I think that the cookie will hang around until the browser is closed and opens again.

chrishea 182 Nearly a Posting Virtuoso

Have you tried it? I don't believe that Cron will have a problem because the password protection should only apply for access from the web.

chrishea 182 Nearly a Posting Virtuoso

a2usmani,
You don't seem to understand the purpose of this forum. Once you write / modify some code, if you are having a problem making it work, then first you use your debugging skills and if that isn't enough, then someone here can probably help. We have better things to do than to write code for you. A lot of people here are willing to help but only after you make some effort.

chrishea 182 Nearly a Posting Virtuoso

Have a look at this:

Paypal IPN Interface

It makes using IPN pretty easy and saves you having to reinvent the wheel. IPN will call a module that you identify after a payment is processed (or rejected). It provides you the details of the transaction and you can then update your database with the results.

chrishea 182 Nearly a Posting Virtuoso

PHP 5 and MySQL 5 are the current versions.

A good source is w3schools. They have tutorials on many topics, including PHP. You will need to know HTML and you will want to know some CSS (and they have tutorials on both if you need them). php.net and mysql.com are ok as a reference but I don't think that you will find them very useful for learning. You can download the PHP reference manual and that you will probably use regularly when you start coding.

If you want to do some serious PHP coding in the near future, you have quite a bit of learning to do. How you do that depends on your style of learning. Some people like to read a book while others (like me) prefer to jump in and start messing around with some code as quickly as possible. There is lots of open source code out there so I suggest that you get some sample code and start playing around with it and making changes so you can have some contact with a real working program as soon as you can. There is lots of info on the internet so if you are stuck on something, start with a search and you should find relevant info.

If you have worked with files and databases before, MySQL is pretty straightforward. PHP provides commands to use MySQL (e.g. mysql_query). The PHP section on w3schools has a sub-section on …

chrishea 182 Nearly a Posting Virtuoso

If you want a variable to be available in multiple modules, then save it as a SESSION variable and then it will be available everywhere as long as the session is active.

chrishea 182 Nearly a Posting Virtuoso

On line 4 the = should be ==

chrishea 182 Nearly a Posting Virtuoso
chrishea 182 Nearly a Posting Virtuoso

strtotime is pretty good at turning english into a date. Here's an example:

<?PHP
     $ts = strtotime (" next month Dec 2010 ");
     $text = date ("F",$ts);
     echo $text;
?>
chrishea 182 Nearly a Posting Virtuoso
chrishea 182 Nearly a Posting Virtuoso

Assuming that "automatically" means doing a query to write it to another table, then the answer is yes. Do a MySQL Insert or Update into the appropriate table.

ceeandcee commented: Thank you! +1
chrishea 182 Nearly a Posting Virtuoso

I suspect that it isn't taking anything like 10 seconds to execute the functions that you didn't show. That's a long time on a fast machine. Put a sleep command in just after all the code that you didn't show and I'll bet that you'll see a difference in the two values. The time until it displays might be quite long because of network transmission time or the time it takes the browser to deal with it but it may not be anywhere near that amount of time on the server. If you want to see how much time it is actually taking use / display the microtime before and after.

chrishea 182 Nearly a Posting Virtuoso

If it is simpler (less code) then it is probably better. If you need to do the same thing multiple time using different parameters then a function would seem to be the way to go. Unless there is a lot of complex / extra code in the function to make sense of the input parameters and what you need to do with them (versus customized modules for each type of parm), then it won't have any performance impact.

chrishea 182 Nearly a Posting Virtuoso

You will need to convert to a time stamp and then convert back to what you need. First, create an arbitrary date using the month that was passed (e.g "2010-".$m."-01"). Use strtotime to convert it to a time stamp and then use Date to get the full text month.

chrishea 182 Nearly a Posting Virtuoso
chrishea 182 Nearly a Posting Virtuoso

You need a bit of javascript. You could escape out of php and just have the javascript but this example does it as an echo.

echo "
<script language=\"Javascript\">
<!--
var answer = confirm (\"Confirm the Delete of Record $ref_num\")
document.location.href='the_processing_program.php?other_parm=xxxxx&conf='+answer;
//-->
</script>
";

This passes the response to the alert box to the program that will process the delete / database update or whatever restricted operation you are using this to control.

chrishea 182 Nearly a Posting Virtuoso

strtotime("$date $time");

should work fine. Make sure that you use double quotes, not single.

chrishea 182 Nearly a Posting Virtuoso

Have a look at flock

chrishea 182 Nearly a Posting Virtuoso

$time_calc = date("H:i",$your_timestamp);

chrishea 182 Nearly a Posting Virtuoso

Your explanation isn't very clear. You also don't explain why don't want to use Cron. If B knows that it is expecting a response from A, then the next time that B becomes active (whether it is by Cron or by the next request), then it needs to perform a check to see if it is waiting for anything from any previous request (and how long it has been waiting). If the wait is longer than a parameter value that you define, then B would send the email.

If you don't get frequent requests and you don't have access to Cron, you can still trigger a check if you have access to a web page that gets pretty regular hits.

chrishea 182 Nearly a Posting Virtuoso

You may want to consider putting the directory for the downloads outside the web root on your server. That way, it can only be accessed through a program and that program can check the login info to see if the user has the authority to do it. You can do a search and get more info (I provided one link below). There are some considerations so do a bit of research.

http://www.bigresource.com/Tracker/Track-php-mKbF05IC/

chrishea 182 Nearly a Posting Virtuoso

Normally your admin would also login and that would set a session variable to show that this user has admin privileges. On any page that only an admin can access, you need to check that session variable to see if this is an admin user or not.

chrishea 182 Nearly a Posting Virtuoso

You're probably better off using timestamps. Have a look at this tutorial:

http://www.dreamincode.net/forums/topic/19953-calculating-age-tutorial/

chrishea 182 Nearly a Posting Virtuoso

If this was always going to be two numbers and a mathematical operation, then the easiest way in PHP would be to have a box for the first number, a drop down list for the operation and a box for the second number. It is then easy enough in the module that processes the form to use an if / else or a switch/ case construct to determine what the operation is and perform that operation on the two numbers. If you want it to be free-form then you would need to parse the string to get back to the same thing. If you don't want to limit it to 2 numbers and one operation then you are getting into the low end of compiler / interpreter writing and that would be more complex.

chrishea 182 Nearly a Posting Virtuoso

Suggestions:
1. Use the one that you have linked to above.
2. If you want to build your own, then sit down and work out the math and then write some code.
3. If you don't have the skills and knowledge for #2 go back to #1 or hire someone to do it for you.