This extension allow use PHPPDO library for emulate PDO functionality.
Sometimes hosting providers disable PDO wholly or PDO_ particularly. This extension allow you to use PHP-emulated PDO class on that hostings.
Resources ¶
Documentation ¶
Requirements ¶
Installation ¶
- Extract the release file under
protected/extensions
Usage ¶
For use it add in config/main.php:
...
'db'=>array(
'class'=>'application.extensions.PHPPDO.CPdoDbConnection',
'pdoClass' => 'PHPPDO',
...
),
...
Change Log ¶
Mar 7, 2010 ¶
- PHPPDO version bump, thanks to rohit.
Sep 15, 2009 ¶
- Fixed bug (PDO.php not found), thanks to Swarog.
June 15, 2009 ¶
- Fixed bug, thanks to Ryuuzaki.
June 9, 2009 ¶
- Fix for forced use of PHPPDO library: just add 'phpClass'=>'PHPPDO' db component parameter.
April 7, 2009 ¶
Total 9 comments
I had problems with the pdo_oci driver and this extension solved the problem :)
Solved a big problem for me. Thanks.
i failed 'db'=>array( 'class'=>'application.extensions.PHPPDO.phppdo', 'pdoClass' => 'PHPPDO',
'connectionString' => 'mysql:host=localhost;dbname=yii', 'emulatePrepare' => true, 'username' => 'root', 'password' => '123456', 'charset' => 'utf8', 'tablePrefix'=> 'tbl_', ),some web hosting disabled PDO extension, and this extension emulates PDO very well. really helps me a lot. Thanks.
Need it. my host's pdo is not available!
On few hostings, pdo extension is not available! So, in that case this extension is very helpful. The original classes have been upgraded from 1.2(which is used in this extension) to 1.4 by now. If the author of this extension does an upgrade it will be great. I just found, that only one class is for extension other files will just need update from original PHPPDO extension. Good work. And very good example of extension!
very good!
This extension is very good.
Unfortunately PDO_MYSQL is disabled here and this extesion emulates very good the the real PDO.
I do not understand the sense of this extension - yii is based on pdo, so what does your extension? Please write more about it.
Leave a comment
Please login to leave your comment.