Linux Mint - Free and powerful

Sunday, 17 August 2014

Turn on PHP Error Reporting (Tutorial)

Turn on PHP Error Reporting (Tutorial):



'via Blog this'



Man using laptop in the living room - Gehringj/E+/Getty Images

If you are running into a white page or some other PHP error, but you have no clue what is wrong, you should consider turning on PHP error reporting. This will give you some indication of where or what the problem is. This is a good first step to solving your problem. Here is how to turn on PHP errors:
To display error messages caused by your PHP script you can include these lines of code:
ini_set('display_errors',1);  error_reporting(E_ALL);
Another way to do it is to edit your php.ini file and include this option:
error_reporting = E_ALL
To turn error reporting off for a single document, include this line:
error_reporting(0);
Read more in depth about different types of error reporting available [view]

0 comments :

Post a Comment

Thank you for taking the time to comment. Your opinion is important and of value and we appreciate the positive feedback! If you are "Negative Nancy" then please do us, and humanity, a favor, and piss off.

Total Pageviews

Google+ Followers

Pages

Blog Archive

Popular Posts

Recent Comments

Rays Twitter feed

Ads

Web sites come and go and information is lost and therefore some pages are archived. @rayd123. Powered by Blogger.