Smartlab Software logo

PHP Debug Trick

I was working on a site that had PHP warnings turned off. The program I was working on showed a blank page. Creating and executing a new file, as shown below, solved the problem (which ended up being a parsing error). Indeed, a very nice php debugging technique.

<?php
error_reporting(E_ALL);
ini_set("display_errors", 1);
include("file_with_errors.php");
?>

Comments


Add a comment

All fields are required. Email will not be published or sold. Please read our privacy statement.