HostOnNet Blog

Display Errors in PHP Script

Looking for Linux Server Admin or WordPress Expert? We can help.

Some web servers have PHP display_errors turned off by default for security reason. This is good for security, but make debug very hard.

To display errors in PHP script, add following code to PHP script

ini_set('display_errors', '1');

Posted in PHP

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.