View PHP Parse Errors


/ Published in: PHP
Save to your folder(s)

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.


Copy this code and paste it in your HTML
  1. <?php
  2.  
  3. // file name: checkerrors.php
  4.  
  5. ini_set("display_errors", 1);
  6. include('file_with_errors.php');

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.