How to stop fopen from triggering warning when attempting to open an invalid/unreachable URI
<p>I'm using fopen to generate a price feed.</p>

<pre><code>if (($handle = fopen("http://feedurl", "r")) !== FALSE) {

}
</code></pre>

<p>Is there a way to stop this warning if the feed fails:</p>

<blockquote>
  <p><b>Warning</b>:  fopen() [function.fopen]: php_network_getaddresses: getaddrinfo failed: Name or service not known in…</p>
</blockquote>
