title: /var/www/ folder structure for PHP project
body: <p>I'm using MAMP just for my development environment and haven't really understood the folder structure of /var/www/project-name/ on a web server.  I'm wondering whether you're meant to point the web server to the htdocs folder or it's supposed to point to the root of the project folder?</p>
  
  <p>The reason I ask is because libraries are meant to exist outside of the htdocs folder for security purposes, but how are they pointed to from the web application itself? Surely the web application can't access folders outside of the htdocs folder if the web server is pointing to the htdocs folder for the web application?</p>