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 Quote Link to comment Share on other sites More sharing options...
dflow Posted March 8, 2011 Author Share Posted March 8, 2011 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 } ?> Quote Link to comment 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 } Quote Link to comment 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.