|
Posted by Roy Kaldung on 05/25/07 07:37
JM wrote:
> What is the preferred method to connect to a mysql database ?
> Or what are the (dis)advantages of mentioned methods to access a mysql
> database ?
>
Hi,
a common advantage if all these database abstraction layers is the
consistent API for different databases like MySQL, Oracle, etc.
PEAR DB and MDB2 are implemented in PHP, PDO comes with PHP 'natice' is
a C implementation. Therefore I prefer PDO by reason of speed and the
constraint to use PHP 5 (PDO isn't available for PHP 4).
hth,
Roy
Navigation:
[Reply to this message]
|