title: Stop printing php error messages to browser
body: <p>I'm using PHP 5.3, CentOS 6.2, httpd 2.2.15, NetBeans 7.0.1 (running remotely via ftp). </p>
  
  <p>I want to stop printing error messages to the browser, it's enough that it prints to the error_log of httpd. </p>
  
  <p>I thought by doing try/catch I would decide on my own how to handle the error but it still prints to both error_log and browser. </p>
  
  <pre><code>function smic_gettext($phrase){
  
          try{
              $tr_text = $this-&gt;language_array[$phrase];
  
          } catch(Exception $e){
              error_log("Couldn't find any entry in the translation file for ".$phrase.". ".$e);
              return $phrase;
  
          }
  
          return $tr_text;
      } 
  </code></pre>
  
  <p>How should I configure in order to stop this behaviour?   </p>
  
  <p>I have tried setting display_errors=Off and display_errors=0 in php.ini. No difference (I did restart httpd). </p>