Posted By

Moridin on 08/19/10


errors php view parse phpini

Versions (?)

Who likes this?

2 people have marked this snippet as a favorite


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
  3. // file name: checkerrors.php
  5. ini_set("display_errors", 1);
  6. include('file_with_errors.php');

Report this snippet  

You need to login to post a comment.