PHP Errors

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
terrym
Forum Newbie
Posts: 5
Joined: Wed May 29, 2002 3:51 pm
Location: United Kingdom

PHP Errors

Post 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
User avatar
protokol
Forum Contributor
Posts: 353
Joined: Fri Jun 21, 2002 7:00 pm
Location: Cleveland, OH
Contact:

Post by protokol »

do error_reporting(E_ALL); at the top of each script you want to see errors/warnings/notices, etc.
User avatar
martin
Forum Commoner
Posts: 33
Joined: Fri Jun 28, 2002 12:59 pm
Location: Cambridgeshire

Post by martin »

Or you could use output buffering, see
http://www.devshed.com/Server_Side/PHP/ ... ring/print
Post Reply