title: Php auto prepend file
body: <p>Is there a way i can include different file from different folder using single .htaccess file</p>
  
  <p>Example:<br>
  <code>/</code>, should include init.php<br>
  <code>/admin</code>, should include admin_init.php</p>
  
  <p>Currently i put .htaccess in every folder</p>
  
  <p>.htacess in <code>/</code> folder contain:</p>
  
  <pre><code>php_value auto_prepend_file 'inc/init.php'
  </code></pre>
  
  <p>.htacess in <code>/admin</code> folder contain:</p>
  
  <pre><code>auto_prepend_file 'inc/admin_init.php'
  </code></pre>
  
  <p>When i use <code>Directory</code> directive, apache give me Internal Error</p>
  
  <pre><code>&lt;Directory /&gt;
    php_value auto_prepend_file 'inc/init.php'
  &lt;/Directory&gt;
  
  &lt;Directory /admin&gt;
    php_value auto_prepend_file 'inc/admin_init.php'
  &lt;/Directory&gt;
  </code></pre>
  
  <p>Is this can be done using single .htaccess file?</p>