MIPS64 Posted October 25, 2012 Share Posted October 25, 2012 Like many, I store my config.php file containing my database connection variables outside of my web root. Is there any reason to NOT store all the other PHP scripts outside the web root as well? Will there be performance issues or something else I am not thinking of? I would literally have just template files available in the web root pointing to the scripts that are outside of it when called upon. Quote Link to comment https://forums.phpfreaks.com/topic/269879-storing-all-files-outside-of-web-root/ Share on other sites More sharing options...
Christian F. Posted October 25, 2012 Share Posted October 25, 2012 Nope, only reason (I can think of atm) would be if the Web server cannot read files outside of the web root. So keep on doing what you're doing. Quote Link to comment https://forums.phpfreaks.com/topic/269879-storing-all-files-outside-of-web-root/#findComment-1387612 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.