Codxplore.com

Latest news:

New android application Islamic Video has been released. its a free islamic video application for android smartphone. Download now!

Yii oracle database connection


Open php.ini file and find ;extension=php_oci8.dll, enable this extension by removing ; from left side for example extension=php_oci8.dll. 

restart the apache server

now open main.php file under yourproject/protected/config/main.php file,

find db = array() section and add following code

'connectionString' => 'oci:dbname=127.0.0.1:1521/XE;charset=AL32UTF8',

'username' => 'pos',

'password' => 'pos',

for example 

'db' => array(
            'connectionString' => 'oci:dbname=127.0.0.1:1521/XE;charset=AL32UTF8',
            'username' => 'pos',
            'password' => 'pos',
),
 
Thanks
Tags :

Views : 765

Subscribe Us


Follow Us