waynew Posted June 17, 2008 Share Posted June 17, 2008 Hey guys. I have a problem that is probably easy to solve. I'm running Apache with PHP5 and mySQL, and need to enable my localhost to show PHP errors. I've tried error_reporting(E_ALL); but it is still not giving me any errors. Any help would be appreciated. Quote Link to comment https://forums.phpfreaks.com/topic/110555-enabling-error-checking/ Share on other sites More sharing options...
waynew Posted June 17, 2008 Author Share Posted June 17, 2008 Is there anyway to enable error reporting on my localhost? error_reporting(E_ALL); doesn't work. Quote Link to comment https://forums.phpfreaks.com/topic/110555-enabling-error-checking/#findComment-567168 Share on other sites More sharing options...
dmccabe Posted June 17, 2008 Share Posted June 17, 2008 Edit your php.ini and look for the line called Display Errors and set it to 1 Quote Link to comment https://forums.phpfreaks.com/topic/110555-enabling-error-checking/#findComment-567170 Share on other sites More sharing options...
GingerRobot Posted June 17, 2008 Share Posted June 17, 2008 Hate to blow my own trumpet, but you could check out this. Basically, you can change display_errors either in your php.ini, at run time with the init_set() function or with a .htaccess file. All methods are explain either on that page or in the comments below. However, if you've got a syntactical error, then you can't change it with the ini_set() function, since PHP cannot interpret your page properly. Quote Link to comment https://forums.phpfreaks.com/topic/110555-enabling-error-checking/#findComment-567173 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.