News Feed
Sections




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

DevShed:
Using Directory Iterators and MySQL with Adapter Objects with PHP
December 13, 2006 @ 14:10:00

Continuing on from the first part of the series looking at the use of Adapter objects, DevShed has posted part two today - using the Adapter objects along with Directory Iterators to integrate with a MySQL database.

Provided that you understand the basic concepts of the adapter pattern, in this final tutorial, I'll show you how to use it in conjunction with the "DirectoryIterator" class, bundled with PHP 5, and with a couple of MySQL wrappers as well.

They jump right in (as was said, assuming you read the previous article) to using the directory iterators and the adapters together to make a class that gets information about the files in a directory. They take this and show a sample use that's then transformed into a class capable of using the same logic on MySQL results.

0 comments voice your opinion now!
tutorial adapter object directory iterator mysql result part2 tutorial adapter object directory iterator mysql result part2


blog comments powered by Disqus

Similar Posts

Matthew Weier O'Phinney's Blog: Writing Gearman Workers in PHP

Matthew Weir O'Phinney's Blog: Cgiapp2 Tutorial 1 - Switch Template Plugins at Will

DevShed: Fetching Search Results as Serialized Arrays with Yahoo Web Services and PHP 5

Rob Allen: Globally overriding validation messages for ZF2 forms

Sudheer Satyanarayana's Blog: XML RPC Client Using PHP PEAR - A Real World Example: Ping Technorati


Community Events





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


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

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