Re: some ideas for open discussion
| From: | Wez Furlong | Date: | Fri, 23 May 2003 21:05:27 +0000 |
| Subject: | Re: some ideas for open discussion | ||
| References: | 1 2 3 | Groups: | php.mirrors |
| Request: | Send a blank email to php-mirrors+get-17987@lists.php.net to get a copy of this message | ||
> > If we change /error/index.php -> /error.php
>
> I would be very happy to see this change for 'good looking organization'
> reasons, but I was unable to come up with a good method for it which
> would not break all mirrors. They all have ErrorHandlers set to
> /error/index.php :(((
How about something like this:
error/index.php:
<?php
chdir($_SERVER['DOCUMENT_ROOT']);
include $_SERVER['DOCUMENT_ROOT'] . '/error.php';
?>
Well maintained mirrors would just use /error.php; other mirrors would
be supported using this method until they update.
We might need to fake a few variables for the benefit of the script, and
just make sure we use fully qualified URI's when redirecting.
> May I also suggest caching? The cache related headers are used very
> differently on pages. There are some pages which include specific
> caching headers for no real reason. Generally I think that caching can
> probably be enhanced.
Correct caching (particularly of the manual pages, and the home page)
would be a very good idea.
--Wez.