Re: Re: Parsing a PHP file - Newbie alert

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Andrew Hargreaves wrote:
Andrew Hargreaves wrote:

On Tue, 15 Feb 2005 19:20:52 -0500, Jason Barnett
<jason.barnett@xxxxxxxxxxxxx> 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.




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

If you're attempting to view a page from the localhost then you shouldn't need to muck around with DNS unless you installed Apache and then changed the DNS already. By default Apache *should* work for localhost and it will listen on port 80 / 8080.

At this point it is safe to say you have a server (Apache) problem.
Make sure the server is running and it is listening on port 80 / 8080.
A "connection was refused" error indicates that the server didn't
respond at all!  Try google / Apache manual pages for this error message
if you need more help.

--
Teach a man to fish...

NEW? | http://www.catb.org/~esr/faqs/smart-questions.html
STFA | http://marc.theaimsgroup.com/?l=php-general&w=2
STFM | http://www.php.net/manual/en/index.php
STFW | http://www.google.com/search?q=php
LAZY |
http://mycroft.mozdev.org/download.html?name=PHP&submitform=Find+search+plugins

Attachment: signature.asc
Description: OpenPGP digital signature


[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Database Programming]     [PHP Install]     [Kernel Newbies]     [Yosemite Forum]     [PHP Books]

  Powered by Linux