Categories
Technology

How to show errors in php

ini_set('display_errors','on');
error_reporting(E_ALL);

Just future reference in case you need to show errors in php when it is not enabled in php.ini. Otherwise you’ll get the uninformative “Server Error” page.