simrx11 Posted April 29, 2010 Share Posted April 29, 2010 The last thread I started suggested that I alter my php.ini file so that it displays errors but I didn't know how to do that. I read some other threads and I'm surmising that you add "ini_set('display_errors', 1);" in a script? Is that right? If it is, what is the one for the error reporting setting? Link to comment https://forums.phpfreaks.com/topic/200115-phpini-check/ Share on other sites More sharing options...
anups Posted April 29, 2010 Share Posted April 29, 2010 INI setting done by you is correct, you have to also write following line in your code ini_set('display_errors', 1); ini_set("error_reporting",E_ALL); Link to comment https://forums.phpfreaks.com/topic/200115-phpini-check/#findComment-1050323 Share on other sites More sharing options...
simrx11 Posted April 29, 2010 Author Share Posted April 29, 2010 Oh good, thanks. I was reading about E_STRICT because E_ALL excludes it. php.net's description : "Enable to have PHP suggest changes to your code which will ensure the best interoperability and forward compatibility of your code." Sounds good to me. Is there a reason it's excluded from E_ALL? Link to comment https://forums.phpfreaks.com/topic/200115-phpini-check/#findComment-1050325 Share on other sites More sharing options...
Mchl Posted April 29, 2010 Share Posted April 29, 2010 There is. These are not errors, but suggestions. If they were part of E_ALL, many script would require a lot of work to run without throwing error messages. If you want to enable E_STRICT use error_reporting(E_ALL | E_STRICT); Link to comment https://forums.phpfreaks.com/topic/200115-phpini-check/#findComment-1050339 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.