How can I see the errors in my PHP script?

Post Reply
User avatar
Vanderburg
Former staff
Former staff
Posts: 1253
https://www.youtube.com/channel/UC40BgXanDqOYoVCYFDSTfHA
Joined: Sat Nov 13, 2010 7:27 am
Location: Dallas, TX

How can I see the errors in my PHP script?

Post by Vanderburg »

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