Re: Re: Parsing a PHP file - Newbie alert
| From: | Jason Barnett | Date: | Wed, 16 Feb 2005 14:38:51 +0000 |
| Subject: | Re: Re: Parsing a PHP file - Newbie alert | ||
| References: | 1 2 3 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-25592@lists.php.net to get a copy of this message | ||
Please keep email responses to the newsgroup / list. Helps me stay
organized and I help out when I can.
Andrew Hargreaves wrote:
On Tue, 15 Feb 2005 19:20:52 -0500, Jason Barnett <jason.barnett@telesuite.com> wrote: ...
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.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?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'm at work now but I'll give it a go tonight when I get in and let you know hwo that goes. Regards Andrew H
Attachment: [application/pgp-signature] OpenPGP digital signature signature.asc