Accessing outside of public_html or httpdocs
<p>In a way to secure my files from outside access, I am considering placing all the included files outside the public_html folder or the httpdocs folder.</p>

<p>However, <a href="http://stackoverflow.com/questions/14670263/accessing-php-code-outside-public-html-folder#comment20505810_14670263">this comment</a> is saying that nothing should be kept outside of the public folder that handles user input data.</p>

<p>What is the best and most ideal practice for this?  My thinking would be to have a .htaccess point route EVERYTHING to an index.php, and the index.php includes all the neccessary files such as database connections and whatever else, and also includes the .php file which would have the HTML and PHP inside it for the main body content of the page.</p>

<p>Can anyone tell me if there is anything wrong with that, and why?</p>
