Page 1 of 1

PHP Errors

Posted: Sun Jul 14, 2002 7:29 am
by terrym
Obviously everyone knows that you can trap most error messages by using set_error_handler.
But it appears to ignore Fatal Errors?
Is there any way around this, like having ALL errors intercepted?
Regards
Terry

Posted: Sun Jul 14, 2002 9:38 am
by protokol
do error_reporting(E_ALL); at the top of each script you want to see errors/warnings/notices, etc.

Posted: Sun Jul 14, 2002 9:46 am
by martin
Or you could use output buffering, see
http://www.devshed.com/Server_Side/PHP/ ... ring/print