title: PHP turn off errors - in one file only
body: <p>I am well aware about <code>error_reporting(0);</code> &amp; <code>ini_set('display_errors', "Off");</code> to make error messages go away. </p>
  
  <p>What would be an appropriate way to do this -  for a specific file or part of code only?
  Surpressing errors with @'s seems like a bad idea since it apparently slows the code down...</p>
  
  <p>The reason? We have a number of memcached servers in a development LAN that is really unreliable due to the network settings, thereby we are recieving errors multiple times every hour and there's nothing we can do about it except stop using memcache or turning off errors for the whole application, which would be giving us a headache - in the middle of the development stage :)</p>