gloveny Posted July 11, 2007 Share Posted July 11, 2007 Hi, I'm have massive problems trying to get any output from a PHP error. In PHP.INI, error_reporting is already set to E_ALL. In the code I've used error_reporting(E_ALL); and ini_set('error_reporting', E_ALL); BUT it still wont print out any errors or warnings ... or anything. It would be nice if I could say that it must be that I'm such a good prgrammer that there are no errors, but I am soberly aware that this is certainly not the case. When the code stubles across an error it just stops (like it normaly would do) but doesnt print anything (anything at all, not even a <br/> tag) to the browser. ??? This is most annoying and confusing. I've reinstalled PHP from scratch but it had no effect. Please some one help, the silence is killing me. Graham Link to comment https://forums.phpfreaks.com/topic/59452-silent-but-violent/ Share on other sites More sharing options...
per1os Posted July 11, 2007 Share Posted July 11, 2007 did you set display_errors to on via ini_set ? Link to comment https://forums.phpfreaks.com/topic/59452-silent-but-violent/#findComment-295420 Share on other sites More sharing options...
gloveny Posted July 11, 2007 Author Share Posted July 11, 2007 Cheers, yes..... Link to comment https://forums.phpfreaks.com/topic/59452-silent-but-violent/#findComment-295423 Share on other sites More sharing options...
per1os Posted July 11, 2007 Share Posted July 11, 2007 Check your php.ini file there is a section for that, make sure everything looks good. If you need a great syntax checking editor, check my sig. That does syntax etc for you so your not always guess and checking. Its made me much more efficient =) Link to comment https://forums.phpfreaks.com/topic/59452-silent-but-violent/#findComment-295425 Share on other sites More sharing options...
gloveny Posted July 11, 2007 Author Share Posted July 11, 2007 done that....any more tips? Link to comment https://forums.phpfreaks.com/topic/59452-silent-but-violent/#findComment-295427 Share on other sites More sharing options...
trq Posted July 11, 2007 Share Posted July 11, 2007 Are you sure your editing the correct php.ini file? If the setting are set as you have suggested and are in the correct php.ini then you will see any errors that occur. There are really no other options. Link to comment https://forums.phpfreaks.com/topic/59452-silent-but-violent/#findComment-295430 Share on other sites More sharing options...
per1os Posted July 11, 2007 Share Posted July 11, 2007 http://us.php.net/manual/en/function.set-error-handler.php Try creating your own error handler? Link to comment https://forums.phpfreaks.com/topic/59452-silent-but-violent/#findComment-295432 Share on other sites More sharing options...
trq Posted July 11, 2007 Share Posted July 11, 2007 Of course.... you did restart the server after php.ini changes? Link to comment https://forums.phpfreaks.com/topic/59452-silent-but-violent/#findComment-295434 Share on other sites More sharing options...
gloveny Posted July 11, 2007 Author Share Posted July 11, 2007 Didnt need to restart server as php.ini already contained desired values. Thanks all who posted. Am giving up and moveing to another server..... [crawls away with tail between legs] Link to comment https://forums.phpfreaks.com/topic/59452-silent-but-violent/#findComment-295466 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.