Using the PEAR DB Package
The PHP Extension and Application Repository (PEAR) is a collection of powerful and quality-controlled libraries that can be used to extend PHP’s functionality. We cover PEAR in much more detail in Hour 23, “PEAR: Reusable Components to Extend the Power of PHP.” The DB package, however, is so enormously significant as a database tool, it would be a serious omission to not include it here.
We have looked at two mechanisms for working with SQL. You might have notice how similar the functions we covered are. Yet despite these similarities, shifting a project from one set of database functions to another is time-consuming. You would have to go through your source code and change function names before the transfer would ...
Get Sams Teach Yourself PHP in 24 Hours, Third Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.