How do I get PHP errors to display?
Web Design & IT Services in Swanage, Poole, Bournemouth and Dorset by Matthew Pond
Display errors is usually always turned off in the
php.ini or your Apache config file to stop the wrong people seeing details of your server if something goes wrong.
When debugging code I always add the following three lines to the top of the script I am looking at:
ini_set('display_errors', 1); ini_set('display_startup_errors', 1); error_reporting(E_ALL);
That prints out all the errors I need.