How to Set Up Local Copies of Apache and PHP
Posted: Fri Jan 18, 2008 11:28 am
I was having problems with "Preview" in Rapid PHP, but I think I have traced it to Apache/PHP rather Rapid PHP itself.
In order to cut out some variables I got out of Rapid PHP and just tried to open http://localhost/*.php in a browser. I found that PHP pages open OK except when there is a MySQL connection. Then nothing happens at all; not even an error message.
I make the MySQL connection with a separate "include" file that is called from the first line of the *.php file. This file is along the lines of:
<php>
I've gone through some exhaustive checks with my hosting company (Clook. Brilliant company!) to make sure I am putting the right info into mysql_connect. They also pointed out that if it was just a problem with the info there, it should display the error message. But it doesn't: it just displays a blank page. If I check Page Source, that is blank too.
Any ideas, anyone?
In order to cut out some variables I got out of Rapid PHP and just tried to open http://localhost/*.php in a browser. I found that PHP pages open OK except when there is a MySQL connection. Then nothing happens at all; not even an error message.
I make the MySQL connection with a separate "include" file that is called from the first line of the *.php file. This file is along the lines of:
<php>
I've gone through some exhaustive checks with my hosting company (Clook. Brilliant company!) to make sure I am putting the right info into mysql_connect. They also pointed out that if it was just a problem with the info there, it should display the error message. But it doesn't: it just displays a blank page. If I check Page Source, that is blank too.
Any ideas, anyone?