At 2004-03-03 12:20, Hari Bhanujan wrote: >If I put index.php and try to view localhost from mozilla I am getting >nothing displayed on the screen..
It's indeed important to call the file index.php and not index.htm or index.html. You also need to tell Apache (in it's configuration file) what to do with .php files. This is explained in the PHP installation information. Make sure you're looking at the index.php file through Apache and not directly as a file. This means that the file must be accessible from the root HTML directory, so depending on the version of Apache you're using this is for example by default: - c:\htdocs\index.php - c:\Program Files\Apache Group\Apache\htdocs\index.php (The exact location is defined within the Apache configuration file). You should then be able to access the file as: http://localhost/index.php Also check in the 'hosts' file (somewhere in the Windows directory or in /etc/ for Unix) if localhost has been defined and is equal to '127.0.0.1'. Also try the URL: http://127.0.0.1/index.php Also try the real IP address of the computer, on a local system behind a NAT-router this is for example 192.168.1.15. (Type 'ipconfig' after a DOS prompt). Also try pinging those IP addresses (but not all systems respond to ping calls). After a DOS prompt, type 'ping localhost'. Greetings, Jaap >I am installing Apache and PHP again (I need to make this work with php) > >Regards >Hari > >-----Original Message----- >From: Chris Hewitt [mailto:[EMAIL PROTECTED] >Sent: Tuesday, March 02, 2004 1:13 PM >To: [EMAIL PROTECTED] >Cc: [EMAIL PROTECTED] >Subject: Re: [PHP-INSTALL] Installing PHP 5.0 - viewing php script > >Hari Bhanujan wrote: > >>I have checked the php.ini file. The option for short_open_tag is set >to >>on (not that it makes any difference). >> >>I am installing PHP again to see if it makes any difference.. >> >>Thanks >>Hari >> >>-----Original Message----- >>From: Mike Ni [mailto:[EMAIL PROTECTED] >>Sent: Tuesday, March 02, 2004 11:05 AM >>To: [EMAIL PROTECTED] >>Subject: RE: [PHP-INSTALL] Installing PHP 5.0 - viewing php script >> >> >>Perhaps it has something to do with "php.ini". >>Php.ini can determine the basic characterisctic >>of your php. >> >> >>Mkie >> >>--- Hari Bhanujan <[EMAIL PROTECTED]> wrote: >> >>>Jaap and all PHP gurus >>> >>>I tried the script for phpinfo() >>> >>>Here is what I put in the index.html file >>><h1> >>>Test >>></h1> >>><?php >>>phpinfo() >>>?> >>>I can see the test inside of html tags OK but not >>>info about php that I >>>have installed.. >>> >You mention that you have called the file index.html. Have you >configured Apache/IIS to have html files? What happens if you change >its name to index.php? > >HTH >Chris