slpwkr Posted February 14, 2007 Share Posted February 14, 2007 Hi, I have problem with my godaddy account. There are alot of warning messages in some of my pages. I tried to turn it off using php.ini file but its not working. Are there any other ways to turn it off? Thank you. Link to comment https://forums.phpfreaks.com/topic/38448-warning-messages/ Share on other sites More sharing options...
DeathStar Posted February 14, 2007 Share Posted February 14, 2007 try fixing the errors on those pages? Link to comment https://forums.phpfreaks.com/topic/38448-warning-messages/#findComment-184480 Share on other sites More sharing options...
slpwkr Posted February 14, 2007 Author Share Posted February 14, 2007 Its not Error messages, it's warning messages. My problem is not fixing the warning messages but to configure php.ini or .htaccess so that all the warning message will not appear. Link to comment https://forums.phpfreaks.com/topic/38448-warning-messages/#findComment-184482 Share on other sites More sharing options...
ToonMariner Posted February 14, 2007 Share Posted February 14, 2007 put an '@' in front of the parameter the warning is displaying... Link to comment https://forums.phpfreaks.com/topic/38448-warning-messages/#findComment-184485 Share on other sites More sharing options...
slpwkr Posted February 14, 2007 Author Share Posted February 14, 2007 Thanks but my problem is not in the code but in the configuration. Link to comment https://forums.phpfreaks.com/topic/38448-warning-messages/#findComment-184488 Share on other sites More sharing options...
ToonMariner Posted February 14, 2007 Share Posted February 14, 2007 yes so put an '@' in there it surpresses warnings alternatively use ini_set('error_reporting', 1); that will only output fatal errors. I think 0 or null switches them all off. Link to comment https://forums.phpfreaks.com/topic/38448-warning-messages/#findComment-184511 Share on other sites More sharing options...
slpwkr Posted February 19, 2007 Author Share Posted February 19, 2007 where will I put ini_set('error_reporting', 1); ? Link to comment https://forums.phpfreaks.com/topic/38448-warning-messages/#findComment-188294 Share on other sites More sharing options...
superuser2 Posted February 19, 2007 Share Posted February 19, 2007 At the beginning of all your pages. If you have a common include, this is the place to put it. Link to comment https://forums.phpfreaks.com/topic/38448-warning-messages/#findComment-188325 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.