By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
448,814 Members | 1,671 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 448,814 IT Pros & Developers. It's quick & easy.

Project, files and directories organisation

P: n/a
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
Jul 17 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
"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

Jul 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.