PHP
  Home arrow PHP arrow Setting up the Foundation for an Extensible Website Engine with PHP 5
Dev Shed Forums  
Administration  
AJAX  
Apache  
BrainDump  
DHTML  
Flash  
Java  
JavaScript  
Multimedia  
MySQL  
Oracle  
Perl  
PHP  
Practices  
Python  
Reviews  
Security  
Smartphone Development  
Style-Sheets  
Web Services  
XML  
Zend  
Zope  
Mobile Linux  
App Generation ROI  
IBM® developerWorks  
Forums Sitemap  
E-Commerce Hosting  
Linux Web Hosting  
Managed Hosting  
Small Business Hosting  
VPS Hosting  
Weekly Newsletter

 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid  
Request Media Kit
Contact Us  
Site Map  
Privacy Policy  
Support  
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
PHP

Setting up the Foundation for an Extensible Website Engine with PHP 5
By: Alejandro Gervasio
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: starstarstarstarstar / 14
    2006-10-24


    Table of Contents:
  • Setting up the Foundation for an Extensible Website Engine with PHP 5
  • Defining the core structure of a simple yet dynamic website
  • Creating a simple template file
  • Defining the database schema with MySQL

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      error-file:tidyout.log Del.ici.ous error-file:tidyout.log Digg
      error-file:tidyout.log Blink error-file:tidyout.log Simpy
      error-file:tidyout.log Google error-file:tidyout.log Spurl
      error-file:tidyout.log Y! MyWeb error-file:tidyout.log Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article

     
     
    ADVERTISEMENT


    Setting up the Foundation for an Extensible Website Engine with PHP 5
    ( Page 1 of 4 )

    Building a dynamic website with a database backend is something that nearly every PHP programmer will need to do, usually sooner rather than later. If you haven't done it yet (or even if you have), this two-part article series will show you how to develop a website engine that can generate pages on the fly from a simple database structure.

    I'm sure that you still remember those old, sweet days, when building websites was a matter of coding a bunch of all-static HTML pages, including a few images on them, and creating the corresponding hyperlinks to use the goodies of the HTTP protocol. Yeah, those times were great, weren't they?

    However, not all things must have that nostalgic feeling. This is particularly true when it comes to stressing the advantages of developing modern dynamic websites, which are mostly driven by a database backend. Definitely, creating websites that use different layers for storing content, handling visual presentation and structure, and performing all sorts of clever tasks via a server-side programming language (like PHP, among others), has become the usual scenario for many web developers.

    Of course, since the subject is rather huge, there are many ways to build dynamic websites, aside from using a group of database tables for storing distilled content. You can use flat files for saving data, or in the best case, if your storage requirements aren't particularly demanding, server memory can be also a fairly good option. Nevertheless, as the web grows to unimaginable dimensions, databases are by far the most used mechanism for saving the contents of a website, and certainly that tendency has been continuing steadily for a considerable amount of time.

    So, what's the point of this introduction, after all? Well, for experienced PHP developers, building database-driven websites can be considered a straightforward process, which probably will be performed with minor hassles, but for beginners or intermediate programmers, this experience surely may be quite troubling.

    Therefore, in response to all the reasons that I mentioned above, over the course of this two-part series, I'll walk you through the development of a highly extensible and "pluggable" website engine with PHP 5, which will allow you generate web pages on the fly based on a predefined (but simple) database structure. By using a few comprehensive PHP classes, along with a single template file, you'll be able to create truly dynamic websites that maintain a consistent look across their pages.

    Have you been missing the "dynamic" feature of your websites lately? Let's fix that up quickly with this expandable, PHP 5-based website engine!



     
     
    >>> More PHP Articles          >>> More By Alejandro Gervasio
     

       

    PHP ARTICLES

    - Using Directory Iterators to Build Loader Ap...
    - Using the spl_autoload() Functions to Build ...
    - Working Out of the Object Context to Build L...
    - Using the _autoload() Magic Function to Buil...
    - The Destruct Magic Function in PHP 5
    - The Autoload Magic Function in PHP 5
    - Developing a Recursive Loading Class for Loa...
    - The Sleep and Wakeup Magic Functions in PHP 5
    - Using the Clone Magic Function in PHP 5
    - Including Files Recursively with Loader Appl...
    - The Call Magic Function in PHP 5
    - Designing a Captcha System with PHP and MySQL
    - Using Static Methods to Build Loader Apps in...
    - The Isset and Unset Magic Functions in PHP 5
    - Advanced PHP Form Input Validation to Check ...





    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway
    Stay green...Green IT