How do I get PHP errors to display?

Posted by Prem Tiwari | Updated on

Want to know how to get PHP errors to display? Use the following PHP code to enable PHP errors, warning, notice to display.

However, this doesn’t make PHP to show parse errors – the only way to show those errors is to modify your php.ini with this line:

(if you don’t have access to php.ini, then putting this line in .htaccess might work too):


If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers