Turn On Error Reporting Immediately

by Sanju 2010-01-01 16:10:07

Turn On Error Reporting Immediately

Generally the error reporting is set at a level that will hide many little things like:

    * declaring a variable ahead of time,
* referencing a variable that isn’t available in that segment of code, or
* using a define that isn’t set.


Put the following line at the top of every PHP document as you develop to turn on error reporting:

error_reporting(E_ALL);


It simply forces the error reporting to be at its highest level.

Tagged in:

1002
like
0
dislike
0
mail
flag

You must LOGIN to add comments