Page 1 of 1

Is PDO supported by all PHP servers?

Posted: Thu Aug 14, 2008 3:33 am
by kaisellgren
Hello there,

I am working on a script, which requires people to have at least PHP 5.1.3. So PDO comes within the PHP release, but is it loaded on all PHP servers? Do you think it's wise to use PDO in PHP 5.1.3+ powered project? Should I provide an alternative choice for my own database abstraction layer which implements all major SQL languages?

Re: Is PDO supported by all PHP servers?

Posted: Thu Aug 14, 2008 3:42 am
by onion2k
I would never rely on anything that the admin can remove being there. You don't need to go all the way to providing your own abstraction though - just have the code test to see if PDO is available and dump the user to an error page that tells them to enable it if it isn't.