phppdo

PDO emulation library
8 followers

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

  • Yii 1.0 or above

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

  • Initial release.

Total 9 comments

#5901 report it
Iza at 2011/11/23 02:53pm
Thx :D

I had problems with the pdo_oci driver and this extension solved the problem :)

#4457 report it
iamnotcoward at 2011/07/10 10:33pm
Great

Solved a big problem for me. Thanks.

#4386 report it
qijunz at 2011/07/04 05:01am
but how to set in the config/main.php

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_',         
    ),
#231 report it
xhumanx at 2010/08/01 09:38pm
helpful

some web hosting disabled PDO extension, and this extension emulates PDO very well. really helps me a lot. Thanks.

#694 report it
dongbeta at 2010/03/17 07:36am
Thank You

Need it. my host's pdo is not available!

#750 report it
rohit at 2010/03/06 02:54am
Helped me a lot

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!

#1228 report it
zhouyang at 2009/10/20 12:16am
太牛叉了。很实际的东西

very good!

#1436 report it
Ismael at 2009/08/03 12:23pm
Works great.

This extension is very good.

Unfortunately PDO_MYSQL is disabled here and this extesion emulates very good the the real PDO.

#1456 report it
yingyang at 2009/07/30 08:24am
Why?

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 to leave your comment.

Create extension