Re: Looking for a good MySQL db abstraction layer
| From: | Paul Burney | Date: | Fri, 08 Mar 2002 18:48:44 +0000 |
| Subject: | Re: Looking for a good MySQL db abstraction layer | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-17579@lists.php.net to get a copy of this message | ||
on 3/8/02 1:04 PM, Michael Zornek at mikezornek@mikezornek.com appended the
following bits to my mbox:
> I'm looking for a good MySQL db abstraction layer. I'm just coming back to
> PHP/MySQL and rather writing my own I figured I'd try to see if any are
> already out there.
>
> The layer should obviously have the basics, of connect, query, and close,
> and possibly some error checking and handling.
You should probably look into PEAR. <http://pear.php.net/>
You probably
have the basic PEAR stuff if you did a source install of PHP.
They have a DB Abstraction class that is similar to Perl DBI and it appears
to be the way of the future.
<http://pear.php.net/manual/en/core.db.php>
FWIW, the author of the PHP Developers' Cookbook (Sams) did all of the
database examples using PEAR syntax.
Of course, I've not made the switch over yet so take my advice with a grain
of salt.
Hope it helps.
Sincerely,
Paul Burney
http://paulburney.com/
<?php
If ($your_php_version < 4.1.2) {
upgrade_now(); // to avoid major security problems
/* Please see <http://security.e-matters.de/advisories/012002.html>
*/
?>