PHPBuilder - Smart Architectures in PHP Page 3



RSS Twitter
Articles Application Architecture

Smart Architectures in PHP - Page 3

by: Tim Perdue
|
October 10, 2000

The Basics

The fundamentals of a smart architecture include:
  1. Database independence
  2. Presentation independence
  3. Portability
  4. Object-Oriented or at least broken into function call libraries
  5. What else?
There are certainly more items for that list, but those are the biggest points I can think of. Maybe you can point out others.
Let's examine each of those in detail.
1. Database Independence.
Well you never know where your site is going. Certainly when you build it, you hope it's going to get huge and highly-trafficked. So with that in mind, you don't want to tie yourself irreparably to MS Access or some other cheesy, lightweight database. You will never be able to instantly plug in different databases, but you can make the transition as smooth as possible.
There are several different options that have cropped up to help you abstract your database calls. One of the odd things about PHP is that you have to code for a specific database, as all the function calls are different for each database. To get around this, you can use the a database abstraction layer, like those found in PHPLib, the forthcoming PEAR, and the simple library we developed for SourceForge.

« Previous Page
1
|
2
|
3
|
4
|
5
|
6
Next Page »

Comment and Contribute

Your comment has been submitted and is pending approval.

Author:
Tim Perdue

Comment:



Comment:

(Maximum characters: 1200). You have characters left.