title: Secure folder structure for php site
body: <p>I'm a Java (SE, EE) developer and I have been working with these techs for almost 6 years, I have also worked with php for non-web apps. </p>
  
  <p>Now I'm required to build a site in php but I have googled a lot and I can't find a standard folder structure for a php site. As may you know in Java EE there is a defined structure and with the web.xml you can define security in order to allow or deny access to folders in the web root. </p>
  
  <p>So the question is: Is there a standard folder structure to bring security in a php site? </p>
  
  <p>If there is not, how can I prevent access to folders in my site, without the need to use .htaccess nor moving my folders to a private area in the web server? </p>