"Alain FONTAINE" <fo**********@wanadoo.fr> wrote in message
news:d1**************************@posting.google.c om...
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.
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>.php
Function library files are called
<library>.inc.php
Class library files are called
<library>.class.php
Template and HTML files are called
<filename>.html
XML configuration files are called
<filename>.xml