| Shimi 2004-12-18, 12:49 pm |
| Don't know if possible, BUT, if you put mirror-info.php IN manual/ and
check for its contents, you:
a) verify that /manual/ alias doesn't exist (you wouldn't get
mirror-info.php if it did)
b) still can have all the info mirror-info.php gives you.
the only downside I can think of, is if the /manual/ dir is getting
overwritten all the time by something else (like the documentation
creation script), but I wouldn't think this is the case, because if it
was, during to creation of new manuals, mirrors that would sync from the
master server would have a partial look of the site...
your opinion? :)
On Sat, 2004-12-18 at 14:59, Gabor Hojtsy wrote:
> Hi Edin,
>
>
> We check for the availability of /manual/noalias.txt on the server,
> which is used to filter out mirrors having the default apache manual
> alias still switched on. This can only be dealt with virtual() since it
> depends on the server handling the request, and not PHP. Alternatively
> we could require URL fopen on mirrors and check with that, or we could
> send a second test request to the mirrors when checking their status. I
> have introduced this virtual() check in june 2003, and noone complained
> about it so far, except that a few mirrors have used suphp.
>
> This is the file we poll to get the current mirror status:
>
> http://cvs.php.net/phpweb/mirror-info.php
>
> And this is the script that does the check:
>
> http://cvs.php.net/php-master-web/scripts/mirror-test
>
> Now if someone does some magic to not use virtual, but still check for
> the local manual availabilty on mirrors, I would probably be positive on
> using that. When changing/upgrading servers, it is very common on
> mirrors to forget to remove the manual alias, which makes the PHP manual
> hidden and unreadable behind the apache manual...
>
> Goba
--
shimi <shimi@shimi.net>
|