When I use this url http://www.ilpost.it/2014/02/25/peanuts-2014-febbraio-25/ (the page is empty but still exists in a certain sense) with file_get_contents
it gives me the following warning:
Warning: file_get_contents(http://www.ilpost.it/2014/02/16/peanuts-2014-febbraio-16/) [function.file-get-contents]: failed to open stream: HTTP request failed! HTTP/1.0 404 Not Found in [...my php url...]
Even if I put the function in a condition like this
if (file_get_contents($url_to_feed) === FALSE){..}
I get the warning and then the result of the condition.
How do I resolve this problem and avoid the warning?