Re: [PHP] IE and '404 not found' custom script
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, //\[EMAIL PROTECTED] v_/_ http://nayco.free.fr - Original Message - From: Enrique Vadillo [EMAIL PROTECTED] To: [EMAIL PROTECTED] 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: [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]
[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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] IE and '404 not found' custom script
you said you added some headers, how about padding the html out with nbsp; but I'm not sure what you are doing here, so that may not apply/work :) Andrew - Original Message - From: Enrique Vadillo [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, September 11, 2001 1: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: [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]