Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to display php errors in a more readable format

I've recently switched from WAMP/XAMPP to LAMP and one thing I found useful was the clean, formatted error reporting. On my current server it just displays errors as plain text, and it can be hard to read through using a web browser (and not viewing source). So is there any way to display errors similarly to WAMP, like in an HTML table with styling?

like image 256
jreed121 Avatar asked Feb 20 '12 23:02

jreed121


1 Answers

It's a PHP setting, not specific to any *AMP platform, set in php.ini:

html_errors = 1

relevant docs: http://www.php.net/manual/en/errorfunc.configuration.php#ini.html-errors

like image 189
Marc B Avatar answered Oct 10 '22 06:10

Marc B