PHP
  Home arrow PHP arrow Defining the Core Structure of a PHP B...
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

Defining the Core Structure of a PHP Blogger
By: Alejandro Gervasio
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 11
    2006-11-21

    Table of Contents:
  • Defining the Core Structure of a PHP Blogger
  • Defining the blogger's core structure
  • Defining the insertBlog() method
  • Defining the updateBlog() method
  • Defining the deleteBlog() method

  • 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


    Defining the Core Structure of a PHP Blogger


    (Page 1 of 5 )

    In the first part of this three-part series, we'll examine the basic outlines of creating a blog application with PHP 5. If you're currently working with PHP 4, this program can be adapted to that version of the language.
    A downloadable zip file is available for this article.

    Introduction

    Anyone who has been using PHP for a while knows that building fairly simple database-driven web applications is indeed a straightforward process that can be accomplished with minor headaches. Whether you've been developing the core engine of a small website, or creating a decent search system that uses a database backend for indexing relevant content, the truth is that PHP makes it really easy to create these kinds of applications.

    True to form, building web-based systems that implement some type of interaction with a RDBMS, particularly with one as popular as MySQL, is an experience that you've probably tackled a dozen times, or even more if you're a seasoned PHP developer with many hours of sleepless hard work on your shoulders.

    Among the plethora of database-driven applications that you can create with PHP without having to scratch your head until you lose your hair is one that has become very popular over the last two years. I'm speaking specifically of bloggers, which allow anyone to insert easily editable content onto a website by using only a graphical front end. Of course, when I use the term "editable," I mean that all the blog entries can be updated and even deleted without having to know a pinch of web programming.

    Since this powerful approach, which is also used heavily with content management systems, can be implemented in PHP with minor hassles, I've prepared for you a three-part series that will teach you in a friendly manner how to create an extensible blog mechanism.

    Naturally, the blogger that I'll build over the course of these articles will be provided with the capacity for performing the most common tasks associated with this kind of application, like inserting, updating and deleting blog entries, in addition to including some extra features that you'll discover in turn in the different tutorials.

    Assuming that building a blogger with PHP is really an interesting topic for you, let's learn together how this useful application can be developed in a few easy steps. Let's get going!

    More PHP Articles
    More By Alejandro Gervasio


       · In this first article of the series, you'll learn how to define the basic structure...
       · Hi Alejandro,Looks very good. The way the class BlogProcessor is laid out looks...
       · One minor question though: in the resultclass you have: public function...
       · Hi Matthijs,Thank you for the kind comments on my PHP article. Yeap, there's a...
       · Hi again Matthijs,Concerning your question, in PHP 5, objects are automatically...
       · Alejandro, thanks for your replies. Looking forward to the next articles.
     

       

    PHP ARTICLES

    - 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
    - Building a Content Management System with Co...
    - Filters and Login Systems for Web Applicatio...
    - Working with the Email Class in Code Igniter





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