Difference between revisions of "PHP troubleshooting"

From KOP KB
Jump to: navigation, search
(Created page with "Put these two lines at the top of any php file possibly having errors but not showing them <syntaxhighlight lang=php"> error_reporting(E_ALL); ini_set('display_errors', 1); </...")
 
 
Line 1: Line 1:
 
Put these two lines at the top of any php file possibly having errors but not showing them
 
Put these two lines at the top of any php file possibly having errors but not showing them
<syntaxhighlight lang=php">
+
<syntaxhighlight lang="php">
 
error_reporting(E_ALL);
 
error_reporting(E_ALL);
 
ini_set('display_errors', 1);
 
ini_set('display_errors', 1);
 
</syntaxhighlight>
 
</syntaxhighlight>

Latest revision as of 22:13, 19 May 2015

Put these two lines at the top of any php file possibly having errors but not showing them

error_reporting(E_ALL);
ini_set('display_errors', 1);