[nycphp-talk] if you were teaching PHP...

Jayesh Sheth jayeshsh at
Wed Jan 19 12:42:25 EST 2005

Hi all,

My take on using PEAR DB is as follows:

It is a good thing, because it not only helps make your application more 
portable between different database vendors (e.g. between MySQL and 
Oracle) but also between multiple database versions from the same 
database vendor (MySQL 3.x and 4.x vs. MySQL 4.1). What I mean is that 
if you are using the old MySQL client library in PHP (mysql_connect() ) 
with MySQL 3.x or MySQL 4.0, and then you upgrade to MySQL 4.1, your 
application will break. This is because to access MySQL 4.1 PHP needs 
the new MySQL client library (mysqli_connect() - note the extra 'i'). 
So, if you use PEAR DB, you can make migration of your PHP scripts 
between different versions of MySQL much easier.

- Jay

More information about the talk mailing list