News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

DevShed:
Creating a Blog Application with Interpreter Classes with PHP 5
April 16, 2007 @ 11:53:00

DevShed has posted the final part of their look at working with the Interpreter pattern and its use in a PHP5 application with the creation of a simple blogging application.

As you can see, the logic that drives the interpreter pattern is rather easy to understand and implement with functional PHP code. Therefore, in this final installment of the series, I'm going to demonstrate how to get the most out of this handy pattern by developing a highly expansible blogging application. The application will be able to insert, update and delete blog entries, using a simple MySQL database as backend.

They start off with the creation of the MySQL class that will interface with the database backend for the application. Also included is a Result class to fetch the results from each query. On top of these, they create the Blog class to handle the requests for information and a BlogHandler class to push the submitted data back into the database.

Finally, they wrap it all together and give a real-life example of it in action, inserting new blog information and making an update of the content on one.

0 comments voice your opinion now!
designpattern interpreter tutorial blog application designpattern interpreter tutorial blog application


blog comments powered by Disqus

Similar Posts

HowTo Forge: Fedora 8 Server Setup - LAMP, Email, DNS, FTP, ISPConfig - Page 6

WS02 Oxygen Tank: PHP SOAP Extension

Ed Finkler's Blog: Building a Tumblelog with Gimme Bar and PHP

Mike Purcell's Blog: CentOS - PHP - Install Memcached (with a d) Stack

Andrew Podner: Using Final to Prevent Overrides and Extension


Community Events





Don't see your event here?
Let us know!


api introduction code project library series developer language list configure podcast interview community release application framework bugfix wordpress threedevsandamaybe laravel

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework