Posted By

Moridin on 08/19/10


Tagged

errors php view parse phpini


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

mgerdt
divtagged


View PHP Parse Errors


 / Published in: PHP
 

Allows you to still view PHP parse errors, even if you don't have write access to your php.ini file. Since PHP pages are parsed before being executed, parse errors won't show up even if you turn on display_errors in the page you are checking.

  1. <?php
  2.  
  3. // file name: checkerrors.php
  4.  
  5. ini_set("display_errors", 1);
  6. include('file_with_errors.php');

Report this snippet  

You need to login to post a comment.