Question :
I can not connect to codeigniter
in oracle.
Displays this error:
A PHP Error was encountered
Severity: Notice
Message: Use of undefined constant OCI_COMMIT_ON_SUCCESS - assumed 'OCI_COMMIT_ON_SUCCESS'
Filename: database/DB.php
Line Number: 144
Database:
$db['default']['hostname'] = 'HOST:PORT/SID';
$db['default']['username'] = 'USER';
$db['default']['password'] = 'PASS';
$db['default']['database'] = '';
$db['default']['dbdriver'] = 'oci8';
$db['default']['dbprefix'] = '';
$db['default']['pconnect'] = FALSE;
$db['default']['db_debug'] = TRUE;
$db['default']['cache_on'] = FALSE;
$db['default']['cachedir'] = '';
$db['default']['char_set'] = 'utf8';
$db['default']['dbcollat'] = 'utf8_general_ci';
$db['default']['swap_pre'] = '';
$db['default']['autoinit'] = TRUE;
$db['default']['stricton'] = FALSE;
Apache module enabled:
extension=php_oci8.dll
extension=php_oci8_11g.dll
What can it be?
Answer :
After a quick search, everything indicates that the answer can only be that, contrary to what was stated in the question, the module is not enabled . It remains to know how to effectively enable it.
- Did you restart Apache after changing the settings?
- Check what
php.ini
is actually being used. It might be a different file. (For example,php.ini
enabled by the command line is not the same asphp.ini
enabled by the browser.) - Make sure you do not have any
.htaccess
or equivalent by modifying the setting.