Page 1 of 1

Installing PHP for first time - Not working

Posted: Thu Jun 23, 2011 8:23 am
by westburry
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

Re: Installing PHP for first time - Not working

Posted: Thu Jun 23, 2011 8:56 am
by mikosiko
" The webpage you requested is not available offline. To view this page click Connect "

and did you click Connect?

that message is generated by IE if you have the setup to "Work Offline" .... menu bar/Tools/Work Offline

Re: Installing PHP for first time - Not working

Posted: Thu Jun 23, 2011 12:21 pm
by westburry
Hi

Thanks for your reply.

The path I type in, "http://localhost/phpinfo.php" is on my 'c' drive.