dflow Posted March 8, 2011 Share Posted March 8, 2011 is it possible to disable warnings on a specific page? php.ini set to show warnings Link to comment https://forums.phpfreaks.com/topic/229967-error-display-on-specific-page/ Share on other sites More sharing options...
dflow Posted March 8, 2011 Author Share Posted March 8, 2011 Quote is it possible to disable warnings on a specific page? php.ini set to show warnings i actually want this to work <?php $result=file_get_contents("http://www.example.com"); if ($result === false) { // treat error } else { // handle good case } ?> Link to comment https://forums.phpfreaks.com/topic/229967-error-display-on-specific-page/#findComment-1184404 Share on other sites More sharing options...
systemick Posted March 8, 2011 Share Posted March 8, 2011 This would work: if($result=file_get_contents("http://www.example.com")) { // handle good case } else { // treat error } Link to comment https://forums.phpfreaks.com/topic/229967-error-display-on-specific-page/#findComment-1184433 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.