|
Last updated: 07/03/2009
When debugging php
code, it is often useful to actually see any errors generated, especially mysql or object code errors. Sometimes the server admin modifies the global php
settings, so you don't see any errors generated. This is ok, but it means when your script goes bust, you have no idea what happened.
You can turn on error reporting by adding these lines to the top of your script:
ini_set('error_reporting',E_ALL); ini_set('display_errors','On'); error_reporting(1);
|