PHP
  Home arrow PHP arrow Building Object-Oriented Database Inte...
Dev Shed Forums 
Administration  
AJAX  
Apache  
BrainDump  
DHTML  
Flash  
Java  
JavaScript  
Multimedia  
MySQL  
Oracle  
Perl  
PHP  
Practices  
Python  
Reviews  
Security  
Style-Sheets  
Web Services  
XML  
Zend  
Zope  
Forums Sitemap 
IBM® developerWorks 
Sun Developer Network 
E-Commerce Hosting 
Linux Web Hosting 
Managed Hosting 
Small Business Hosting 
Mobile Linux 
App Generation ROI 
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

Building Object-Oriented Database Interfaces in PHP: Updating the Application to PHP 5
By: Alejandro Gervasio
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 13
    2005-08-31

    Table of Contents:
  • Building Object-Oriented Database Interfaces in PHP: Updating the Application to PHP 5
  • Porting Database Interfaces to PHP 5: member visibility, exceptions and more
  • Using the class in a object-oriented scenario: the "try" and "catch" blocks
  • Completing the round: updating and deleting rows

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb 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


    Building Object-Oriented Database Interfaces in PHP: Updating the Application to PHP 5


    (Page 1 of 4 )

    In this fourth and final article in the tutorial series, Alejandro Gervasio updates the "DBIGenerator" class developed in the previous articles. The new version incorporates features in PHP 5, such as member visibility, exceptions, and other useful items.

    Introduction

    This is the final article in the series "Building Object-Oriented Database Interfaces in PHP." Welcome back. After going through the previous articles, we've introduced ourselves to the interesting subject of database interfaces, explaining some key concepts as a straightforward way to get a better grounding in the topic. I provided a friendly set of examples, aimed primarily at implementing these programming structures in real applications.

    Despite the fact that the subject is far from being fully covered, due mainly to the different approximations applied to accessing database tables through centralized mechanisms, hopefully the issue has been thoroughly treated.

    However, as you know, PHP is a fast-growing language, which has taken a large step forward with the release of PHP 5. As this version is widely adopted by developers and hosting service providers, we need to tackle this rather uncovered aspect, porting most of the source code shown in the previous articles to PHP 5, in order to get updated to the current PHP development tendencies.

    Confronted with this situation, in this last article I'll show the updated version of the "DBIGenerator" class, along with a few basic examples of usage, incorporating some of the most exciting new features present in PHP 5, such as member visibility, exceptions and other goodies.

    Whether you're a developer currently using PHP 4 or making the leap to PHP 5, the article provides you with a friendly introduction to implementing database interfaces in PHP 5.

    With the preliminaries out of the way, let's get started.

    More PHP Articles
    More By Alejandro Gervasio


       · The final part of the series puts its focus on porting all the source code to PHP 5,...
       · Hi Alejandro,thanks again for a great article. Really appreciated! I have some...
       · Hello Matthijs,Thank you for the comments. With reference to your question, I'll...
       · Thanks a lot Alejandro! These examples do work. Now I know the problems I had were...
       · Hello Matthijs,I'm glad to hear about it. It's always good to hear that the...
       · Hi AlejandroThanks for a marvelous bit of code. This is how code should surely...
       · Hi Mark,Thank you for the compliments on my PHP article, since it's something I...
       · Thanks for your prompt reply Alejandro. Much appreciated.Well yes. That clears...
       · Hi again Mark,I'm glad to know that my PHP articles has been inspirational...
     

       

    PHP ARTICLES

    - Authentication Scripts for a User Management...
    - Utilizing the Use Keyword for Namespaces in ...
    - Building a User Management Application
    - Working With Different Namespaces in PHP 5
    - User Management Explained: Overview
    - Using Namespaces in PHP 5
    - Database Security: Guarding Against SQL Inje...
    - Building a Modular Exception Class in PHP 5
    - Database and Password Security for Web Appli...
    - Handling MySQL Data Set Failures in PHP 5
    - Building Site Registration for Web Applicati...
    - Intercepting Customized Exceptions in PHP 5
    - Securing Your Web Application Against Attacks
    - Sub Classing Exceptions in PHP 5
    - Authentication for Web Application Security





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