Error Handling with Netscape

From: Date: Thu, 11 Oct 2001 06:09:46 +0000
Subject: Error Handling with Netscape
Groups: php.general 
Request: Send a blank email to php-general+get-70759@lists.php.net to get a copy of this message
Hello, In my PHP program, I have some processing to display items in a loop which is interspersed inside the Body of the HTML page. While doing this processing, if an error message comes up I "die" with the error message (Displays error message and quits). The error handling works fine on Internet Explorer but shows a blank page in Netscape. I figured out that this is probably because all the HTML tags do not have corresponding end tags. So I tried outputting "</body></html>" before the "die" statement in the error handler. This did not seem to make a difference as there are still some open table tags, etc, ... which do not have correponding end tags. How do I get the error message to print on Netscape? Doing all the error handling before the HTML starts is too much of a problem as I have to duplicate code. Regards, Sharat

« previous php.general (#70759) next »