IE has "Friendly Error Messages" so on a normal 404 response, IE would show
it's own error message, and not the one from the server. The Documented way
around this is to ensure that your 404 document is larger than 512 bytes.

http://www.zdnet.com/products/stories/reviews/0,4161,2779295-3,00.html


----- Original Message -----
From: "Rasmus Lerdorf" <[EMAIL PROTECTED]>
To: "Enrique Vadillo" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Friday, September 07, 2001 2:45 PM
Subject: Re: [PHP] Re: run a script for any HTTP request (was: run a script
on access to a directory)


> What do you mean MSIE does not support 404 ErrorDocument?  That is a
> server-side function.  It has absolutely nothing to do with the browser.
> Try going to: http://php.net/strlen
>
> That is an ErrorDocument 404 thing that kicks in and takes you to the
> right place in the PHP documentation.  And believe me, it works just fine
> for people using MSIE.
>
> Right now an ErrorDocument 404 is the only way to do this.  I am currently
> working on the framework to allow PHP scripts to be inserted at any stage
> in the Apache request_rec handler mechanism.  This would allow you to run
> a PHP script to translate uri's to on-disk pathnames for example, write
> Apache authentication modules in PHP and many many other efficient ways to
> shoot yourself in the foot.  Needs another week or two of development
> before it will be ready for serious testing though.
>
> -Rasmus
>
> > 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 <[EMAIL PROTECTED]>
> > >To: Enrique Vadillo <[EMAIL PROTECTED]>
> > >CC: <[EMAIL PROTECTED]>
> > >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
> >
> >
> >
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to