Re: Re: run a script for any HTTP request (was: run a script on access to a directory)
| From: | Enrique Vadillo | Date: | Fri, 07 Sep 2001 21:36:55 +0000 |
| Subject: | Re: Re: run a script for any HTTP request (was: run a script on access to a directory) | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-66482@lists.php.net to get a copy of this message | ||
MSIE does not support 404 ErrorDocument, that only works fine
with Netscape. Rewriting URLs is nasty when you have to mix
it with php script writing, this could be so much simpler with
a php script.
I know it's a tough question, anyone dares to beat the problem?
Enrique-
From: Philip Hallstrom <philip@adhesivemedia.com> To: Enrique Vadillo <enrique_vadillo@hotmail.com> CC: <php-general@lists.php.net> Subject: [PHP] Re: run a script for any HTTP request (was: run a script on access to a directory) Date: Fri, 7 Sep 2001 14:15:52 -0700 (PDT) What's wrong with rewriting urls? The other alternative is to make sure that none of the urls you are accessing actually exist and then setup an ErrorDocument handler which calls the php script of your choice... which can then do whatever you want... -philip On Fri, 7 Sep 2001, Enrique Vadillo wrote: That was a fine idea Doug, but what if we push the subject and go a little further? I am thinking now that i'd like to make it possible that for ANY http request received by my Apache i'd like to have a php script executed first, i.e.: http://domain.com/ http://domain.com/anydir/anyfile for any of those locations typed, i'd like to be able to execute the php script. i know it's kinda weird but this is what i'm really looking for. any ideas anyone? Enrique-_________________________________________________________________ Descargue GRATUITAMENTE MSN Explorer en http://explorer.msn.es/intl.asp