doubledee Posted November 6, 2011 Share Posted November 6, 2011 Should you store any files other than "index.php" in the Web Root? (I, of course, have lots of folders in my Web Root.) Thanks, Debbie Quote Link to comment https://forums.phpfreaks.com/topic/250545-what-do-you-store-in-the-web-root/ Share on other sites More sharing options...
trq Posted November 6, 2011 Share Posted November 6, 2011 It really depends on your applications structure. Using one of the many MVC frameworks around there is generally no need to store more than the index.php file and maybe a bootstrap of some sort. You obviously still need to store assets such as Javascripts, images and css files. Quote Link to comment https://forums.phpfreaks.com/topic/250545-what-do-you-store-in-the-web-root/#findComment-1285426 Share on other sites More sharing options...
doubledee Posted November 6, 2011 Author Share Posted November 6, 2011 It really depends on your applications structure. Using one of the many MVC frameworks around there is generally no need to store more than the index.php file and maybe a bootstrap of some sort. You obviously still need to store assets such as Javascripts, images and css files. Originally, in my Web Root I had folders called things like "Articles", "Interviews", "Case Studies" which is where I would store most of the content for my website. But since then I have moved most of that into a database. However, there are some pages that are "one-offs" and so it doesn't make sense to put them in my database. So I'm at a loss of where to put them, especially if they are linked to from the Home Page. Right now I just put them in the Web Root (i.e. Level 1) but that makes my Web Root messy as time goes on. I tried grouping things like all of the links in my Footer into a folder called "Footer", but some pages are just sorta out there on their own. For instance, I have a page that is linked from my Home Page called "factoids.php" Any ideas what to do? Debbie Quote Link to comment https://forums.phpfreaks.com/topic/250545-what-do-you-store-in-the-web-root/#findComment-1285672 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.