Solved

Database Abstraction Layer in PHP

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

Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

Question has a verified solution.

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

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 …
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
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…

808 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