title: Accessing php code outside public_html folder
body: <p>I'm trying to setup a new website using Twitter bootstrap as the front-end and PHP as the code behind.</p>
  
  <p>The directory structure I'm using is as follows and fairly standard </p>
  
  <pre><code>c:\xampp\htdocs\app
  c:\xampp\htdocs\app\application\configs
  c:\xampp\htdocs\app\application\modules
  c:\xampp\htdocs\app\data\
  c:\xampp\htdocs\app\data\logs
  c:\xampp\htdocs\app\data\sessions
  c:\xampp\htdocs\public_html\
  c:\xampp\htdocs\public_html\css
  c:\xampp\htdocs\public_html\js
  c:\xampp\htdocs\public_html\img
  </code></pre>
  
  <p>My Apache config is fairly straight forward and consists of</p>
  
  <pre><code>&lt;VirtualHost *:80&gt;
  
  ServerName vinner.localhost
  DocumentRoot C:/xampp/htdocs/app/public_html
  SetEnv APPLICATION_ENV "development"
  &lt;Directory C:/xampp/htdocs/app/public_html&gt; 
      DirectoryIndex index.php index.html index.htm \
                 default.php default.asp default.shtml default.html default.htm \        AllowOverride All
      Order allow,deny
      Allow from all
  &lt;/Directory&gt;
  </code></pre>
  
  <p></p>
  
  <p>Previously I had my PHP code inside the /public_html folder but this obviously isn't great practise so I've moved it to c:\xampp\htdocs\app\application\modules however I can't figure out how to point either POST queries directly to PHP pages, or to create a generic PHP template/include file so my PHP pages are easily accessible.</p>