I've got a pretty simple page which fetches a url and parse some data.
I have built into my page some error handling in the event that the response is a 404 error.
However, I can't seem to stop php from spitting out the following errors
Warning: file_get_contents(http://url-to-retrieve.com/123.html) [function.file-get-contents]: failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in /var/www/html/maickl/procs/get.php on line 84 Notice: Undefined offset: 0 in /var/www/html/maickl/procs/get.php on line 91
I start the page with
error_reporting(0)
Any suggestions as to why this is happening, why these errors are not being suppressed (it seems to be only on this page), and what I can do about it?