OK, got it - finally. Instead of typing http://localhost/index.php, I had to type http://localhost:8080/index.php to get it working. I thought that I had to set that in httpd.conf but it appears that I have had to explicitly tell it to look at port 8080. The main thing for now is that it works as I want to play about with it some more. Thanks for everyone's help. Andrew H On Wed, 16 Feb 2005 18:02:46 +0000, Andrew Hargreaves <ahargreaves@xxxxxxxxx> wrote: > > > > Andrew Hargreaves wrote: > > > On Tue, 15 Feb 2005 19:20:52 -0500, Jason Barnett > > > <jason.barnett@xxxxxxxxxxxxx> wrote: > > ... > > > > >>>When I tried to run my first PHP file to show the PHP Info (<?php > > >>>phpinfo(); ?>) the browser, Firefox 1.0 did nothing. > > >> > > >>Assuming index.php is in the docroot and it contains the phpinfo() call: > > >> > > >>Is this a local server and is the server actually running? Try browsing > > >>to http://localhost/index.php if this is the case. > > > > > > > > > I knew I forgot to add something. yes the file is in the htdocs folder > > > of my apache2 folder on a local server that is running, as confirmed > > > by checking services.msc > > > > > > As the file is on my local PC I have been opening it directly (File, > > > Open File), as opposed to using http://localhost/index.php. Could this > > > method have caused the problem? > > > > Absolutely! It's a common mistake. If you try to open a PHP file > > directly then your browser would have no idea to send the script through > > PHP. But when you browse to that webpage on your local machine > > (http://localhost/index.php) Apache should do all of that work for you. > > Assuming of course that Apache is set up properly; if it's not, then > > tell us what happened when you tried going to this webpage. > > > > > > > Ok, some progress has been made but not in a good way.By browsing to > http://localhost/index.php, I receive the message "The connection was > refused when attempting to contact localhost", same for > 127.0.0.1/index.php so I think I need to look at the DNS settings now. > > I'll let you know how I get on. > > Andrew > -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php