|
|
Turn On Error Reporting Immediately - PHP
|
Views : 249
|
|
Tagged in : PHP
|
|
|
Report This Scrap as Inappropriate We request you to choose the appropriate categroy and subcategory that suits your
objectionable concern about the scrap, So that our team can review and find out whether it violates our Guidelines or the
scrap is not suitable for all viewers.
|
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.
|
|
By - Sanju, On - 2010-01-01 |
|
|
|