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

[ad#co-3]

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 –

[ad#co-2]
error_reporting(E_ALL);
ini_set(“display_errors”, 1);

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

Share

Leave a Reply