The Design of an Intranet Application Framework - Intranet File Structure
(Page 2 of 4 )
All applications that are going to be used on this intranet must adhere to the following rules:
- They must all have a configuration file that contains application specific data such as the name of the application and database access credentials:
$appname="appname";
$dbsupport =FALSE or TRUE;
//db connection details
$dbtype = 'mysql';
$dbhost = 'localhost';
$dbname = '';
$dbusername = 'root';
$dbpass = '';
$dbpath = "$dbtype://$dbuser:$dbpass@$dbhost/$dbname";
$requires_db_access=TRUE;
- All applications must be object oriented in nature. This is not as much a rule as an optional requirement. An application does not have to be object oriented, but for the sake of consistency, if nothing else, I would suggest that it is written in object oriented code.
The file structure itself is very simple. Each application is going to have only one page which will take input and show output. How exactly a given application will function will be shown when we actually create the applications later on. The overall intranet file structure will look like this:

Below is a screen shot of what the intranet front page looks like:

Next: Design Code/Templates >>
More PHP Articles
More By Chris Neeman