Niels Posted September 20, 2011 Share Posted September 20, 2011 Hello! I was working on a simple url generator, but than i though to myself, why not put everything in the root. I've heard thats not a good idea, but i'm ot sure why. I can immagine it gets really messy when you have a lot of files, but its also easy, if you ask me. I was just wondering what your view on this is. What are the pros and what are the cons? Thanks Quote Link to comment https://forums.phpfreaks.com/topic/247493-simple-urls-by-putting-everything-in-the-root/ Share on other sites More sharing options...
trq Posted September 20, 2011 Share Posted September 20, 2011 The idea of having everything in your root would get pretty messing pretty quickly. Of course, this really depends on your application though. Quote Link to comment https://forums.phpfreaks.com/topic/247493-simple-urls-by-putting-everything-in-the-root/#findComment-1270916 Share on other sites More sharing options...
Adam Posted September 20, 2011 Share Posted September 20, 2011 What's so complicated with having sub-directories? Quote Link to comment https://forums.phpfreaks.com/topic/247493-simple-urls-by-putting-everything-in-the-root/#findComment-1270948 Share on other sites More sharing options...
jcbones Posted September 20, 2011 Share Posted September 20, 2011 It really depends. Are you going to have 10 static html files? Without images = Yes, With images = NO! I usually group my files according to what they do. Just like you would a filing cabinet. If you have to add something in a file, there is no question where that file resides. And, it will not take you 2 hours to find it. Quote Link to comment https://forums.phpfreaks.com/topic/247493-simple-urls-by-putting-everything-in-the-root/#findComment-1271168 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.