Installing PHP for first time - Not working
Posted: Thu Jun 23, 2011 8:23 am
Hi
I'm new to PHP and have just installed it on my Windows 7 system along with MySQL and Apache. They came on the CD which came with the book I bought.
I've installed MySQL and Apache. They seem to have been setup okay.
After setting up PHP and typing in " http://localhost/phpinfo.php ", I get the message :
" The webpage you requested is not available offline. To view this page click Connect "
As far as I am aware i have set the PHP up as instructed in the book. There seem to be two PHP ini files on the CD, a php distributed and a php recommended.
I have renamed the php recommended as php.ini. and created a text file named phpinfo.php and saved it in the htdocs directory of the Apache installatiion.
I typed the following in the phpinfo.php file :
<?php
phpinfo();
?>
Would be grateful of some advice.
Thanks
Patrick
I'm new to PHP and have just installed it on my Windows 7 system along with MySQL and Apache. They came on the CD which came with the book I bought.
I've installed MySQL and Apache. They seem to have been setup okay.
After setting up PHP and typing in " http://localhost/phpinfo.php ", I get the message :
" The webpage you requested is not available offline. To view this page click Connect "
As far as I am aware i have set the PHP up as instructed in the book. There seem to be two PHP ini files on the CD, a php distributed and a php recommended.
I have renamed the php recommended as php.ini. and created a text file named phpinfo.php and saved it in the htdocs directory of the Apache installatiion.
I typed the following in the phpinfo.php file :
<?php
phpinfo();
?>
Would be grateful of some advice.
Thanks
Patrick