Forum: PHP Aug 25th, 2009 |
| Replies: 8 Views: 318 You can reference files outside the DocumentRoot in your PHP scripts. You can use either relative or absolute path names, since PHP can "see" the whole file system. |
Forum: PHP Aug 25th, 2009 |
| Replies: 19 Views: 599 Have you tried escaping the single quotes like this?
$sql = mysql_query("SELECT * FROM {$table} WHERE Suburb=\'$suburb\'");
The problem with the single quotes is that PHP interprets anything in... |
Forum: PHP Jul 18th, 2009 |
| Replies: 10 Views: 510 I agree with ardav. Pulling predictable static numerical data from a server does not make sense. Javascript can generate that. If, on the other hand, you need to retrieve some data from a database... |
Forum: PHP Apr 13th, 2009 |
| Replies: 11 Views: 588 Can you post the complete php file that gives you a 500 error? |
Forum: PHP Apr 10th, 2009 |
| Replies: 11 Views: 588 No, you don't have to create a new folder for every page. However, in order for php code to be executed, you not only need to make sure to use the <?php opening and ?> closing tags, but also make... |
Forum: PHP Apr 9th, 2009 |
| Replies: 35 Views: 1,202 Your closing bracket (the last '}' ) does not have a corresponding opening bracket. That is why this is not valid PHP syntax.
It may help to indent your code so you can spot things like this more... |
Forum: Windows NT / 2000 / XP Mar 30th, 2009 |
| Replies: 3 Views: 730 If you press the power button for at least 5 seconds the machine will power off (same effect as unplugging the power). If your system has somehow been corrupted, however, you may not be able to boot... |
Forum: PHP Feb 26th, 2009 |
| Replies: 6 Views: 973 You need to escape the single quotes. |
Forum: PHP Feb 24th, 2009 |
| Replies: 1 Views: 775 When I tried it on my server, it worked. Are you sure that the machine you are doing this on is able to access alertbox.in ? The error seems to point to the computer not being able to reach that... |