justuptime.com - monitor your servers & websites

Directory Structure

You are viewing this site as a guest. Join our community to get your questions answered and share knowledge. Active members may advertise and ask for a website critique.

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

andy206uk's picture
DeveloperModerator

He has: 1,754 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.

Andyk

Blog of a Web Designer
Give a man a fish and you feed him for a day. Teach him to use the Net and he won't bother you for weeks.