title: Use Environment Variables with If Statements
body: <p>I was wondering if there's a way to use an Environment Variables (or similar) with an if statement in order to turn certain things on and off, such as display_errors, modpagespeed.</p>
  
  <p>So for example:</p>
  
  <pre><code>SetEnv DISPLAY_ERRORS on
  
  &lt;If "DISPLAY_ERRORS == on"&gt;
      php_flag display_errors on
  &lt;/If&gt;
  &lt;If "DISPLAY_ERRORS == off"&gt;
      php_flag display_errors off
  &lt;/If&gt;
  </code></pre>
  
  <p>I've spent quite a while searching for such a thing but I was unable to uncover anything which does this. Is this even possible?</p>
  
  <p>I'm looking for an easy way to edit the htaccess using PHP, but instead of writing blocks to htaccess it would be easier to just change the "on" and "off" values and would also make it easier to display this as radio buttons within my application.</p>