Enable PHP display errors on site

93 views
asked Jan 21, 2013 in General by Maria (1,020 points)
I am using PHP5 and I want to temporarily enable the display of PHP errors to solve some issues I’ve been having with my site, and to understand some 500error messages I’ve been seeing lately. How can I do that through in PHP? Kindly help
Thanks

2 Answers

0 like 0 dislike
answered Jan 21, 2013 by TopNet (10,360 points)
You can set the PHP error reporting on from your php.ini file , simply add the below lines in your php.ini file
error_reporting  =  E_ALL
display_errors = On
0 like 0 dislike
answered Jan 21, 2013 by SmartHost (9,060 points)
This could also be done from your .htaccess file , adding the below lines in your .htaccess file
# Displaying PHP errors
php_flag display_errors on
php_value error_reporting 6143
...