How to enable error reporting in PHP without editing php.ini? 

If your website is on a shared hosting and can’t edit your php configuration, or you just want to do a quick debugging for your php script on a production server, you can use the error_reporting function in php:

error_reporting(E_ALL);

(More …)