Home » Open Source » Programming Interfaces » Oracle and PHP
Oracle and PHP [message #194797] Mon, 25 September 2006 06:30
bagyagl
Messages: 2
Registered: September 2006
Location: bangalore
Junior Member

I am the beginner for php
i am trying to get the connection with oracle
i have written the fllg code
<?php
if ($c=OCILogon("scott@finance", "tiger")) {
echo "Successfully connected to Oracle.\n";
OCILogoff($c);
} else {
// $err = OCIError();
echo "Oracle Connect Error " ;//. $err[text];
}
?>

but in the browser i'm getting error like


Warning: ocilogon() [function.ocilogon]: _oci_open_server: ORA-12560: TNS:protocol adapter error in c:\wamp\www\exp php\orac2.php on line 2
Oracle Connect Error


please helpme
Previous Topic: perl and Oracle on Redhat
Next Topic: PHP and Oracle
Goto Forum:
  


Current Time: Wed Aug 27 16:37:12 CDT 2014

Total time taken to generate the page: 0.27416 seconds