RE: [PHP] newbie problem [SOLVED]
| From: | Jay Blanchard | Date: | Tue, 21 Feb 2006 15:00:36 +0000 |
| Subject: | RE: [PHP] newbie problem [SOLVED] | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-230809@lists.php.net to get a copy of this message | ||
[snip]
> Have you installed PHP on the localhost and is it running properly?
Jay (and others),
I solved the problem. I need to use
10.0.1.3/somedir/somedir/somefile.html
and not
localhost/somedir/somedir/somefile.html,
something I don't understand (probably because of lack of knowledge of
PHP/Apache. Strange thing is: on both addresses the .html file can be
reached, only the PHP processing doesn't happen...
[/snip]
You're using the fixed IP of the machine, but you may also be able to use
the generic localhost IP of 127.0.0.1
127.0.0.1/somedir/somedir/somefile.html
You should also have a hosts file somewhere on your machine that you can map
the name 'localhost' to the local IP