Re: Homepage

From: Date: Wed, 17 Jan 2001 21:41:18 +0000
Subject: Re: Homepage
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-35165@lists.php.net to get a copy of this message
On 01/17, S Bey rearranged the electrons to read: > Just a small (and hopefully easy) question. > > Is there a PHP equivalent of index.html? I want to be able to go straight > to a PHP script without the user specifying the filename. It's up to the server to decide what it will look for instead of index.html, but the equivilent would be index.php, index.php3, or index.phtml, depending on the version of PHP you have installed. (The first-listed is PHP4, followed by 3, then 2.x) If you're using Apache as your web server, look for a line in your httpd.conf (or apache.conf) that looks like this: DirectoryIndex index.html Modify it to look like this: DirectoryIndex index.html index.php index.shtml index.php3 index.phtml index.htm (if you want to be extremely thorough) If you're using another web server, sorry, I can't help. :) - Jamie -- Call me insane one more time and I'll eat your other eye <php@in-flux.org> (Single purpose Email address)

« previous php.general (#35165) next »