Re: IE and '404 not found' custom script
| From: | nayco | Date: | Tue, 11 Sep 2001 07:09:12 +0000 |
| Subject: | Re: IE and '404 not found' custom script | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-66863@lists.php.net to get a copy of this message | ||
I use an HTML file like this :
< html >
< head - title ... >
< body >
< img src="my_picture_of_a_404_peugeot.jpg >
< !-- then, here comes the way i found to grow the file's size : 512+ bytes
of invisible text... / / -- >
< /body >
< /html >
I think headers are not counted by the browser in the total size....
(°- Nayco,
//\ Nayco@netcourrier.com
v_/_ http://nayco.free.fr
----- Original Message -----
From: Enrique Vadillo <enrique_vadillo@hotmail.com>
To: <php-general@lists.php.net>
Sent: Tuesday, September 11, 2001 2:56 AM
Subject: [PHP] IE and '404 not found' custom script
> Hi,
>
> I'd like to execute a php script which does *not always* display HTML
> everytime a file is not found.
>
> IE requires that a custom errmsg be over 512 bytes in order to
> display it instead of the internal one, my ErrorDocument script will
> look for any 'not found' file somewhere else (in blob records in
> some database in this case), do other stuff and eventually display
> the file requested, never modifying the URL typed by the user.
>
> GIF Woes: The problem i have encountered is that sometimes the
> requested file is just a very small GIF < 512 bytes and my script
> is anyhow discarded by IE while with Netscape it ALL works fine.
>
> I tried adding more than 512 bytes sending many long headers thru
> the PHP Header() function but it does not seem to work, i can't add
> different headers since my script displays sometimes GIFs and other
> binary data, not text.
>
> Question: how can i force IE display my ErrorDocument 404 php script
> in this case? has anyone encountered this problem before?
>
> thanks.
>
> Enrique-
>
>
>
> _________________________________________________________________
> Descargue GRATUITAMENTE MSN Explorer en
> http://explorer.msn.es/intl.asp
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>