Displaying PHP code errors when not having access to php.ini


When using a shared server,one may not have access to php configuration file php.ini.Many times you will need to enable php errors, so that one can see what is the issue instead of empty page.

One can enable error reporting for php script using following code the main code –

ini_set(“display_errors”, 1);

This will display the errors in the browser when you try using the script.


Leave a Reply