Posted By

kidmizere on 07/11/11


Tagged

errors php


Versions (?)

Display Errors in PHP without php.ini access


 / Published in: PHP
 

URL: http://support.aiso.net/index.php?_m=knowledgebase&_a=viewarticle&kbarticleid=223

  1. How to display PHP errors in the browser for debugging when you don't have access to the servers php.ini file or the servers log files.
  2.  
  3. Insert the below PHP code into the PHP file you want to debug, then this will report all PHP errors to the browser when accessing the PHP page.
  4.  
  5. error_reporting(E_ALL);
  6. ini_set("display_errors", 1);

Report this snippet  

You need to login to post a comment.