Search This Blog

Showing posts with label php. Show all posts
Showing posts with label php. Show all posts

Sunday, 27 July 2014

disable STRICT errors in PHP

 if you want to disable STRICT errors, add ^ E_STRICT to your error reporting configuration, for example:
error_reporting(E_ALL ^ E_STRICT);

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.