Solved

Database Abstraction Layer in PHP

Posted on 2008-11-03
5
450 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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

Developers of all skill levels should learn to use current best practices when developing websites. However many developers, new and old, fall into the trap of using deprecated features because this is what so many tutorials and books tell them to u…
Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this.Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it is …
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…

809 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