title: Custom php.ini per-directory (for testing sites)
body: <p>I'm running Apache 2.26, on Windows 7 with PHP 5.39 mod_ssl/2.2.6 OpenSSL/0.9.8g .</p>
  
  <p>PHP works fine, so does Apache.</p>
  
  <p>However, I want to try and create custom php.ini files per directory, for my test sites.</p>
  
  <p>I could - and did - use php_flag but would like to try to create a custom php.ini file that works. I tried to Google this, but couldn't find anything relevant.</p>
  
  <p>This is my current .htaccess for C:/www/vhosts/localhost/testsite1:</p>
  
  <pre><code>RewriteEngine on
  RewriteBase /
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteCond %{REQUEST_FILENAME}\.php -f
  RewriteRule ^(.*)$ $1.php
  
  
  #RewriteCond %{REQUEST_fileNAME} !\.php -f
  #RewriteRule .* index.php
  
  AddType text/html .asp
  AddHandler application/x-httpd-php .page
  
  php_value include_path "./php:/php/"
  </code></pre>
  
  <p>Yet, I made a change in the custom php.ini within the php to have short tags off [for testing only] but it didn't pick it up, the php code showed instead.</p>
  
  <p>Any help is appreciated with this; it'll be extremely useful!</p>
  
  <p>(bear in mind, this Apache install is a development/testing one)</p>