Linux Ask!

Linux Ask! is a Q & A web site specific for Linux related questions. Questions are collected, answered and audited by experienced Linux users.

Jun 252010
 

Turn on all error reporting in PHP

Answer:

Sometimes, when debugging, it is helpful when you need to enable all PHP errors and make them visible in your application (not in the log), you can put the following line at the top of your script.

<?php

    error_reporting(E_ALL);

 Leave a Reply

(required)

(required)

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>