Sunday 27 July 2014

Resolving php errors when the output is blank

If you just see a blank page instead of an error reporting and you have no server access so you can't edit php configuration files like php.ini try this:

- create a new file in which you include the faulty script:

<?php
error_reporting
(E_ALL);ini_set("display_errors"1);
include(
"file_with_errors.php");?>
- execute this file instead of the faulty script file 

now errors of your faulty script should be reported.

No comments:

Post a Comment