Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

PHP connection with ORACLE 9i + IIS

427759Aug 16 2004 — edited Nov 9 2004
Hello,

I have searched this forum all other php forums, google and other net resources for sum help on this..

I have PHP 4.3.8 running on IIS with Oracle 9i running on the same machine. All i am trying to do is connect to an oracle database through PHP but i am having no luck at all.. This is beginning to really fustrate me now.

Please could someone help and tell me how to configure my system to get this to work??

All i find on the net is disjointed information on how php connects to oracle but no clear tutorials..

The php script i am trying to run is

PHP:
<?php
if ($c=OCILogon("SCOTT", "tiger", "PRACTICE")) {
echo "Successfully connected to Oracle.\n";
OCILogoff($c);
} else {
$err = OCIError();
echo "Oracle Connect Error " . $err[text];
}
?>


The error i am getting is


Fatal error: Call to undefined function: ocilogon() in c:\inetpub\wwwroot\test.php on line 3
PHP Warning: Unknown(): Unable to load dynamic library 'C:\PHP\extensions\php_oci8.dll' - Access is denied. in Unknown on line 0 PHP Warning: Unknown(): Unable to load dynamic library 'C:\PHP\extensions\php_oracle.dll' - Access is denied. in Unknown on line 0



I have un-commented the dll files from php.ini.. this is as far as i can get up to now...

Please Please Plaase can sumone give me a clear tutorial on how to configure php and oracle to work together..

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 7 2004
Added on Aug 16 2004
4 comments
935 views