Directory Structure

They have: 5 posts

Joined: Dec 2006

I'm wanting to setup directory structure on my home computer so that when I upload I can just FTP everything straight over to my web host, and not worry about sorting it all out. I'm wanting to know what a good directory structure would look like. I will let you know I'm new to this so be gentle. I know some very basic HTML since I have sold on Ebay for a while. I just want good housekeeping on both my local and remote sites. Any help would be greatly appreciated. :flame:

They have: 38 posts

Joined: Nov 2006

generally the way people do it is the main directory holds most of the html/php/asp files then images/ css in subfolders so it would look like

.index.html

../css/
...style.css
...ie7.css
...ie6.css

../images/
...background.gif
...image1.jpg

A patch is a piece of software which replaces old bugs with new bugs.

West Chatham Homes | Custom American made Caps | Custom Handmade Knives

He has: 1,758 posts

Joined: Jul 2002

I normally have something like:

/sitename
    /_private (for graphics)
    /_functions (where I keep all my php classes and functions)
    /web (the name of the public directory on my host)
        /images (for images of products/ photos etc)
        /layout (for site layout graphics)
        /js (for javascript libraries)
'

everything else usually goes in the web directory loose. I'll quite often have an admin folder within the web directory, but that depends on if the project has an admin area or not.

Andy

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.