Search code snippets, questions, articles...

Display errors if not shown in PHP script

If you are unable to see the error that occurred in a PHP script then you can use the below code to show errors.
<?php
    // Add this on the top of your PHP script
    ini_set('display_errors', 1);
    error_reporting(E_ALL);
?>
Best JSON Validator, JSON Tree Viewer, JSON Beautifier at same place. Check how cool is the tool
Was this helpful?
0 Comments