Re: .php extension
| From: | Julie Meloni | Date: | Tue, 28 May 2002 22:22:25 +0000 |
| Subject: | Re: .php extension | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-99581@lists.php.net to get a copy of this message | ||
LMNT> As far as I understood it, for a server process the php
LMNT> code, the file must have the extension .php
You can use any extension for PHP, as long as you tell Apache (or
other web server) to process files of that extension as PHP files.
LMNT> Does that mean that I can't have any php in my main page?
No. If using Apache, you can set the value of DirectoryIndex (in
httpd.conf) to index.php index.html index.whatever. You can have a
list of them. Apache will first look for the first name in the list,
and so on.
- Julie
--> Julie Meloni
--> julie@thickbook.com
--> www.thickbook.com
Find "Sams Teach Yourself MySQL in 24 Hours" at
http://www.amazon.com/exec/obidos/ASIN/0672323494/thickbookcom-20