can php cancle an errors notice in a php file, not in php.ini?
<p>As I know, we can set </p>

<pre><code>error_reporting = E_ERROR
display_errors = Off
</code></pre>

<p>in php.ini, for a globe setting.</p>

<p>But I only want to cancel an errors notice in one php file, not all the pages.  when something will print in the page like:</p>

<p><code>Warning: getimagesize(CU1402715579480Bv-300x286--50x50.jpg) [function.getimagesize]: failed to open stream: HTTP request failed! HTTP/1.1 505 HTTP Version Not Supported...</code></p>

<p>Can we close an errors notice on the page, like <code>&lt;php set_time_limit(0); ?&gt;</code> or <code>&lt;php date_default_timezone_set('America/Los_Angeles'); ?&gt;</code></p>

<p>thanks.</p>
