title: Disable warnings and notices for part of a page php
body: <p>We are trying to add the PHP Library PHPDocx for dynamically making Microsoft word docs through our php application. However, their code throughs several warnings and notices that are blowing up our error log. We have our error reporting set to <code>E_STRICT</code> for the site, and want to change the error reporting and logging to <code>E_ERROR</code> just for these files. Unfortunately, our custom templating system (which sets the error reporting), is loaded prior to any requires or references to the PHPDocx library. </p>
  
  <p>I have tried using <code>error_reporting(E_ERROR)</code> and <code>ini_set('display_errors', 0)</code>, but I am still getting the warnings and notices written into our error log. I don't know if its because all of our setup code is run first, but what I would like to do do is only write fatal errors from the PHPDocx files, but keep <code>E_STRICT</code> on the rest of the site.</p>
  
  <p>Thanks for any help.</p>