Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    Regular Coder MrBiggZ's Avatar
    Join Date
    Apr 2005
    Location
    Indianapolis IN
    Posts
    287
    Thanks
    39
    Thanked 0 Times in 0 Posts

    How should I file my files?

    Greetings!

    I've always put my stuff up on the web using a folder named assets for graphics, photos for photos, css for css and so on and so forth.

    Would it be easier for me to make each page its own directly level?

    index.html (and all graphics on the index page)

    aboutme
    ----- all files for about me, photos graphics used on this page.
    links
    ----- all files for about me, photos graphics used on this page.


    Although after posting this I think just keeping it the original way works best. I just wanted some outside input!

    Thanks for the advise!
    Last edited by MrBiggZ; 04-25-2010 at 03:58 AM. Reason: edit

  • #2
    Regular Coder
    Join Date
    Sep 2009
    Posts
    167
    Thanks
    15
    Thanked 1 Time in 1 Post
    not sure exactly what you mean, but if the site isn't too large, you don't have to get crazy with tons of folders.

    if you are working by yourself, you only have to answer this question: what makes life easier for you?

    the web server will find the files quickly anyway. so do what makes sense for you.

    if you have hundreds of images for one website, then you might want to place them into separate, page-specific folders. but if you are only dealing with 20 images or so, then it's easier put them all in the same folder.
    Last edited by code beginner; 04-25-2010 at 04:00 AM.

  • #3
    New Coder
    Join Date
    Mar 2010
    Posts
    27
    Thanks
    0
    Thanked 1 Time in 1 Post
    I don't know what the perfect solution is. As long as there is organization that makes sense and easy to locate. It's no fun going through a few thousand files and folders trying to find something. I tend to avoid creating deep folders/directories. I think going too deep is harder to manage, doesn't look so good in a web browser. I don't know how well some of the search engines find deeper linking. If they can handle it all or not. I try not to go over 4 directory / folders deep if possible.
    dolphin tutorials and Resources

  • #4
    Regular Coder MrBiggZ's Avatar
    Join Date
    Apr 2005
    Location
    Indianapolis IN
    Posts
    287
    Thanks
    39
    Thanked 0 Times in 0 Posts
    Thanks for your insight. I just wanted to get a grip on what others do. I'll just keep doing what I do!

  • #5
    Master Coder
    Join Date
    Apr 2003
    Location
    in my house
    Posts
    5,211
    Thanks
    39
    Thanked 201 Times in 197 Posts
    Are you running a db-driven site where MySQL for example is used to store data?

    if so, you can put all images etc into one directory and store the image names in the db related to the page ~ or something other criterion that makes sense for your app.

    bazz
    "The day you stop learning is the day you become obsolete"! - my late Dad.

    Why do some people say "I don't know for sure"? If they don't know for sure then, they don't know!
    Useful MySQL resource
    Useful MySQL link


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •