Solved

Database Abstraction Layer in PHP

Posted on 2008-11-03
5
448 Views
Last Modified: 2008-11-24
Hi Friends,

I am working on a very big project using PHP.  The database can change from client to client like MySQL, Oracle etc. It will be very helpful if you could give some good info on Database Abstraction Layers for PHP. There are many available on net, the two I shortlisted is Pear MDB2 and AdoDB. I think AdoDB is better. Any ideas/suggestions is highly appreciated.

Regards,
Kiranvj
0
Comment
Question by:kiranvj
  • 2
  • 2
5 Comments
 
LVL 16

Accepted Solution

by:
alain34 earned 175 total points
ID: 22865523
Hello kiranvj,

Have you had a look here to help you decide
http://www.greaterscope.net/documentation/php_database_abstraction_class_comparison.html

Regards,

alain34
0
 
LVL 16

Expert Comment

by:alain34
ID: 22865525
Forgot to say. I personally use AdoDB.
0
 
LVL 11

Assisted Solution

by:NoiS
NoiS earned 175 total points
ID: 22866798
I recomend One of these (I tested a lot of Classes...)

PDO
ADODB
Pear MDB2

In this order.

If you will work only with MySQL or Postgre, PDO is the best choice (my decision).

If you will work with Oracle too, Maybe PDO isn´t the good choice cause PDO don't work will REF Cursos (usually returned by Stored Procedures) but works great for all other functionality.
0
 
LVL 16

Author Comment

by:kiranvj
ID: 23032913
Thank you for the suggestions
0
 
LVL 16

Author Comment

by:kiranvj
ID: 23032915
I think I will go with ADODB
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

These days socially coordinated efforts have turned into a critical requirement for enterprises.
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now