IE and '404 not found' custom script

From: Date: Tue, 11 Sep 2001 00:56:28 +0000
Subject: IE and '404 not found' custom script
Groups: php.general 
Request: Send a blank email to php-general+get-66831@lists.php.net to get a copy of this message
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

« previous php.general (#66831) next »