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. 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. 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
Archived
This topic is now archived and is closed to further replies.