Directory Structure

    Date: 02/21/06 (Web Development)    Keywords: php, css, html, java

    I recently started a new a job. I am working on a site that I started before starting the job. My mentor has suggested a different directory structure that what I am using.

    Functions contains all the PHP functions for the site.

    Currently I am using this:

    (d)root
        (d)css
        (d)functions
        (d)graphics 
        (d)images
        (d)javascript
        
        all my site(html, php) files including administration and config files.
    


    He suggested that I move the site files to their own HTML directory and to seperate the admin from the user files. So I figure something like this:

    (d)root
        (d)css
        (d)config
        (d)functions
        (d)html
              (d)site
                    (d)graphics 
                    (d)images
                    (html, php)files
              (d)admin  
                    (d)graphics 
                    (d)images
                    (html, php)files
        (d)javascript  
    


    does this look sensible? I dont know. How do I get around the fact that the users will see the address as something like bob.com/html/index.htm ?

    What do you typically use?

    Thanks for any advice.

    Source: http://community.livejournal.com/webdev/299943.html

« Weird redraw problems in IE || Attention CSS Gurus »


antivirus | apache | asp | blogging | browser | bugtracking | cms | crm | css | database | ebay | ecommerce | google | hosting | html | java | jsp | linux | microsoft | mysql | offshore | offshoring | oscommerce | php | postgresql | programming | rss | security | seo | shopping | software | spam | spyware | sql | technology | templates | tracker | virus | web | xml | yahoo | home