Mac Os
Mac Os

Reputation: 97

xPDO And Class 'PDO' not found

i'm trying to use the xPDO because not all old version of the php has the PDO class

and some one told me the xpdo class will work if there is no pdo in the host and now i'm trying to use it and it tell me

Fatal error: Class 'PDO' not found

Upvotes: 1

Views: 228

Answers (3)

Madara's Ghost
Madara's Ghost

Reputation: 174957

xPDO does not replace PDO, it extends it. You still need PDO to be on the server.

Frankly, if you need PDO and your host doesn't have it, you don't search for alternatives, you search for another host.

Upvotes: 1

meze
meze

Reputation: 15087

You should use the version 1.x of xPDO (link) that supports PDO emulation (2.x doesn't).

Upvotes: 2

xdazz
xdazz

Reputation: 160833

It is not a substitute of PDO but a DB layer which is Built on PDO. It won't work if there is no PDO.

Built on PDO, the standard DB layer for PHP 5.1+

Upvotes: 2

Related Questions