Dec
27
2008
Display PHP Warning and Error Messages
Many webhost have php set to suppress error message in the php.ini. Often times, a shared hosting user will not have access to modify this file. If you still need to see the php errors, warnings, and notices, php has provided another solution:
error_reporting(E_ALL);
ini_set("display_errors", 1);
Make sure to set this at the top of your document before any code has been outputted by the server.