A2:
|
The PEAR::DB functions should be used if your code is likely be deployed in different contexts from that of development. For example, if you are writing a script that you intend to share with other people, why limit your users to a particular setup? On the other hand, if you are writing a quick local script, working directly with MySQL or SQLite might be easier.
|