Skip to content
Advertisement

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?

Advertisement

Answer

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

User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement