[cfgeeks] Stupid PHP question

Graham Christensen graham.christensen at iamgraham.net
Wed Dec 12 15:00:13 EST 2007


ini_set('display_errors', true);
error_reporting(E_ALL | E_STRICT); // If PHP 5
error_reporting(E_ALL);

Kevin Inscoe wrote:
> Ok I am a newbie to PHP coding. In Perl I use Carp module to throw
> errors into the browser. How do I do this with PHP? I looked at
> briefly at error handlers but I still don't get how to do this. I want
> to throw all errors into the browser instead of having to tail the
> apache error log. This is mod_php if that matters.
>
>   



More information about the cfgeeks mailing list