Entry
Can I use PHP with Oracle on Windows?
How do I enable the Oracle functions with PHP on Windows?
If I add "extension=php3_oci80.dll" in php.ini PHP don't work (even scripts without Oracle)
I've Oracle Personal8.0.5 an PHP4 but when I add the "extension=php3_oci80.dll" php don't work!
Oct 6th, 2003 12:14
Les Williamson, suresh kc, Nathan Wallace, Fernando A. C, Suresh KC
I had the same problem. I tried to install Net 8 but it never worked
for me. I simply used dl function to call php_oci8.dll from my script
instead of loading it from the php.ini file in the windows folder. When
I loaded from the php.ini file, it generated errors even while
accessing non-database php files.
Sample script would be
<?php
dl("php_oci8.dll");
PutEnv("ORACLE_SID=your_sid"); //only if you have more than one sids
$conn = OCILogon("username", "password");
OCICommit($conn);
OCILogOff($conn);
?>
Hope this helps.
It worked for me.
P.S. modify the extension_dir directive in php.ini file in your
windows directory to point to the extensions dir in the php folder.
extension_dir = "d:/php/extensions"
d:\php is my installation folder for php
i had this when using XP,apache2 and php4.3.1, changed to php4.3.3 and
everything works fine, rememer you cannot use php_oracle.dll and
php_oci8.dll together.