Hello, I am finally creating a website on my own(based on php and JS and Ajax) . I have pretty much completed the site. And now am just cleaning all the code and making sure all functionality are working right and also making some performance and "look and feel" related changes. Well now I am in a bit of dilemma. I have written nearly 70-80 pages of php based codes. now that I am trying to restructure(which I should have done while designing-but pardon me) all the codes based on different functionality Current I have the following :- Member functionality - member related codes e commerce functionality -related codes products - - related codes Admin- Related codes Is it advisable to create separate folders under the parent folder for each functionality like above ? or dump all the codes under the root folder and if so then would it not cause delay in page loads? if kept in different folders ? hope you got my question. thanks for taking time to read. Jay
I don't think that there will be a huge difference in the page loading time if you structure it either in the root or in sub folders. Personally I keep them in separate folders so that I know where everything is but that's down to personal choice. Usually in my sites I have the Images in one folder the CSS in a second folder any PHP includes in a third and so on leaving just the page files in the root directory. Hope this helps