website folder structure related doubt

Discussion in 'HTML & Website Design' started by karthikjayraj, Nov 8, 2011.

  1. #1
    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
     
    karthikjayraj, Nov 8, 2011 IP
  2. Toycel

    Toycel Peon

    Messages:
    243
    Likes Received:
    11
    Best Answers:
    4
    Trophy Points:
    0
    #2
    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
     
    Toycel, Nov 9, 2011 IP