Home arrow PHP arrow Page 2 - The Design of an Intranet Application Framework

Intranet File Structure - PHP

This article is the second part of a series on intranet application frameworks. Now that we know what the application framework is all about and how it is going to work in an intranet environment, we are going to look at the overall structure and design of the intranet and the applications. Keep reading to see how this will be done.

  1. The Design of an Intranet Application Framework
  2. Intranet File Structure
  3. Design Code/Templates
  4. More on Templates
By: Chris Neeman
Rating: starstarstarstarstar / 6
July 25, 2007

print this article



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:

$dbsupport =FALSE or TRUE;
//db connection details
$dbtype = 'mysql';
$dbhost = 'localhost';
$dbname = '';
$dbusername = 'root';
$dbpass = '';
$dbpath = "$dbtype://$dbuser:$dbpass@$dbhost/$dbname";

  • 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:

>>> More PHP Articles          >>> More By Chris Neeman

blog comments powered by Disqus
escort Bursa Bursa escort Antalya eskort


- Hackers Compromise PHP Sites to Launch Attac...
- Red Hat, Zend Form OpenShift PaaS Alliance
- PHP IDE News
- BCD, Zend Extend PHP Partnership
- PHP FAQ Highlight
- PHP Creator Didn't Set Out to Create a Langu...
- PHP Trends Revealed in Zend Study
- PHP: Best Methods for Running Scheduled Jobs
- PHP Array Functions: array_change_key_case
- PHP array_combine Function
- PHP array_chunk Function
- PHP Closures as View Helpers: Lazy-Loading F...
- Using PHP Closures as View Helpers
- PHP File and Operating System Program Execut...
- PHP: Effects of Wrapping Code in Class Const...

Developer Shed Affiliates


Dev Shed Tutorial Topics: