Last error: how to get?

From: Date: Wed, 29 Jan 2003 10:04:37 +0000
Subject: Last error: how to get?
Groups: php.general 
Request: Send a blank email to php-general+get-133473@lists.php.net to get a copy of this message
Is there a simple way for me to programmatically know if an error has occurred during my script? (besides from writing a custom error handler?) I want to be able to know at the end of my script if any errors where thrown and then show a simple message. I know that if the error is fatal my script won't run to completion but that is ok as a fatal error in this case should be fatal. Is there some function like get_last_error()? Thanks, Jc

« previous php.general (#133473) next »