I want to build an application on windows using xampp (1.7.4), oracle (XE 10.2) over yii framework (1.1.6).
I receive the following error "CDbConnection failed to open the DB connection: could not find driver " when I attempt to access db.
In the main.php I add
- Code: Select all
'db'=>array
(
'class'=>'CDbConnection',
'connectionString'=>'oci:dbname=//127.0.0.1:1521/xe',
//'charset'=>'UTF8'
'username'=>'blog',
'password'=>'blog',
),
To activate oci i made the following step:
- copied xampp dir in C:\xampp
- copied oracle instant client in C:\xampp\instantclient_11_2
- decomment the line "extension=php_oci8.dll" from php.ini
Did I miss something to do?
When I run xampp control panel application and go to phpinfo menu the value for Configure Command is the following
- Code: Select all
cscript /nologo configure.js "--enable-snapshot-build" "--disable-isapi" "--enable-debug-pack" "--disable-isapi" "--without-mssql" "--without-pdo-mssql" "--without-pi3web" "--with-pdo-oci=D:\php-sdk\oracle\instantclient10\sdk,shared" "--with-oci8=D:\php-sdk\oracle\instantclient10\sdk,shared" "--with-oci8-11g=D:\php-sdk\oracle\instantclient11\sdk,shared" "--enable-object-out-dir=../obj/" "--enable-com-dotnet" "--with-mcrypt=static"
but I have no D:\ path in my pc
PS: I'm sure the db is on because I can use it by Toad
help me please !!!!!!