Folder Structuring Best Practices
I tend to be tedious when it comes to how I layout my folder/file structures with large web projects. Here’s the just of it:
Basic Folder/Directory Structure:
/root/
-/img/
-/includes/
-/templates/
- /root/ - This is the root folder/directory. You can also call this “public_html” or “httpdocs”. This is the web root for the web site.
- /root/img/ - This folder/directory is obviously used to hold all of the images and graphic files.
- /root/includes/ - This folder/directory is used to hold all of the code library files, style sheets, and any other files which are commonly used throughout the system.
- /root/templates/ - This folder/directory is used to hold template files, if the system uses a templating engine.
I have based my folder structuring techniques out of my many years of experience with producing web sites and systems. If you have any experience with actually editing pre-existing web site systems then this folder structure should be familiar to you.
In my next article I will go over the basis of the way I like to structure my files within the folder structure.



