Re: Php Files on Browser

From: Date: Mon, 25 Jun 2001 06:47:14 +0000
Subject: Re: Php Files on Browser
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-55105@lists.php.net to get a copy of this message
> Sorry for this stupid question but I'm a newby trying to install php on my > win98 computer and find that neither netscape nor IE 5.5 won't open php > files that are located on my c: drive but will access php files on the net. > There must be a simple explanation. PHP only kicks in because the web-server (Apache or IIS or Xitami or OmniHTTP or whatever) sees the .php extension and hands off the file to PHP. If your browser is looking directly at a PHP file, there's no web-server involved, so nobody "knows" to fire up PHP. If you're trying to do some development on your Win98 box, you'll have to install some sort of web-server. Apache is free, painless to install, and in all other respects, superior to all the other options :-) http://apache.org After you install Apache, you'll need to edit the "httpd.conf" file to make Apache aware that you are using PHP, and then you'll need to surf to your own little web-server using: http://127.0.0.1/whatever.php 127.0.0.1 is always the computer you are using. -- WARNING richard@zend.com address is an endangered species -- Use ceo@l-i-e.com Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm

« previous php.general (#55105) next »