Project, files and directories organisation

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Alain FONTAINE

    Project, files and directories organisation

    I am searching a kind of software engineering document about PHP. This
    document should give advices about PHP project organisation (structure
    of files, directories, names). Shall I organize hierachically and how
    (a main directory, a directory for php files, for html files ...)? How
    to use "base" request in HTML under PHP and that sort of things.
    Thank you
  • CJ Llewellyn

    #2
    Re: Project, files and directories organisation

    "Alain FONTAINE" <fontaine.dev@w anadoo.fr> wrote in message
    news:d190043e.0 409092255.7fe87 bc9@posting.goo gle.com...[color=blue]
    > I am searching a kind of software engineering document about PHP. This
    > document should give advices about PHP project organisation (structure
    > of files, directories, names). Shall I organize hierachically and how
    > (a main directory, a directory for php files, for html files ...)? How
    > to use "base" request in HTML under PHP and that sort of things.[/color]


    Everybody has their own way of working, my rules are

    /var/www/adodb contains a shared copy of adodb
    /var/www/codetables contains the first/third tier of my MVC system
    /var/www/<project> would contain project specific second tier files of my
    MVC system
    /var/www/<project>/data would contain project specific data and
    configuration files
    /var/www/<project>/html would contain project specific html and template
    files
    /var/www/html/<project> would contain front end user files for each project

    Front end files are called

    <pagename>.ph p

    Function library files are called

    <library>.inc.p hp

    Class library files are called

    <library>.class .php

    Template and HTML files are called

    <filename>.ht ml

    XML configuration files are called

    <filename>.xm l



    Comment

    Working...