Re: To use PEAR::DB or the PHP database functions

From: Date: Thu, 20 Mar 2003 20:04:04 +0000
Subject: Re: To use PEAR::DB or the PHP database functions
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-140467@lists.php.net to get a copy of this message
Pear is really nice. I am very happy with it. - Charles On Thursday, March 20, 2003, at 02:56 PM, Merritt, Dave wrote:
All, I've always used MySQL databases and the MySQL functions in PHP for my code in the past. However, I'm now working on a project that I want the project to be able to be database independent so that the user of the project can use whatever database he/she wishes. I'm looking primarily at providing support for MySQL, PostgreSQL, Oracle, & SQL Server databases. What's the general consensus on how to handle this? Do I need to look at using PEAR::DB so that the type of database is "hidden" from my code or would I look at writing different include files for each database type and each of the include files use the relevant PHP functions? Or some other totally different way? Thanks Dave Merritt dave.merritt@arvinmeritor.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php


« previous php.general (#140467) next »