Re: Working directory of PHP pages?
| From: | Per Jessen | Date: | Wed, 11 Mar 2009 11:57:42 +0000 |
| Subject: | Re: Working directory of PHP pages? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-289830@lists.php.net to get a copy of this message | ||
Clancy wrote:
> It is my understanding that when you open a page the PHP server looks
> for index.php in the site root directory, and loads it.
A typical Apache configuration will have 'DirectoryIndex index' and will
look for 'index' when there is no specific file given. It looks in
whichever directory the URL indicates. With Multiviews enabled, Apache
will look for anything matching 'index.*' and decided which file is the
best match and then serve that.
/Per
--
Per Jessen, Zürich (5.8°C)