How can I see the errors in my PHP script?

Post Reply
User avatar
Vanderburg
Staff
Staff
Posts: 1083
Joined: Sat Nov 13, 2010 7:27 am
Location: Houston, TX

How can I see the errors in my PHP script?

Post by Vanderburg » Fri Jun 01, 2012 5:00 pm

display_errors is disabled by default in our php.ini file, but you can enable it just for your server using a .htaccess file.

To do this, open a new text document and place inside of it:

Code: Select all

php_value error_reporting 7
php_flag display_errors On
Save this file as ".htaccess" and place it in your website folder. This will turn on the inline errors from PHP.

Post Reply