How To Fix Fatal Error: Class 'pdo' Not

Hi All I uploaded my first project to shared hosting but i had this message





[b]Fatal error[/b]:  Class 'PDO' not found in  [b]/home/****/public_html/yii/framework/db/CDbConnection.php[/b] on line  [b]421[/b]



I added lines to my php.ini




extension=pdo.so

extension=pdo_sqlite.so

extension=sqlite.so

extension=pdo_mysql.so




But not Work !!! how to fix it ?

Thanks in advance

You need PDO to connect with databases but I am not sure if shared hosting environments allow setting ‘extensions’ for hosted sites separately…

you can ask you provider if it is possible to enable somehow PDO (as native PDO will be faster than alternatives). I would start with that. If there is no possibility - try to use substitute: http://www.yiiframework.com/extension/phppdo/

This library emulates PDO with PHP wrappers for standard db connection functions. It is in fact not so bad and for Oracle db I would even recommend this one over native PDO_oci as PDO_oci is not stable…

Thanks for help redguy .

[b]

[/b]