Home » Open Source » Programming Interfaces » PHP and Oracle
icon9.gif  PHP and Oracle [message #194631] Sat, 23 September 2006 02:42 Go to next message
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
Re: PHP and Oracle [message #194651 is a reply to message #194631] Sat, 23 September 2006 09:34 Go to previous messageGo to next message
amul
Messages: 252
Registered: April 2001
Location: Chennai
Senior Member
i am afraid this forum is basically meant for ORACLE.and for php there is always this link
Re: PHP and Oracle [message #194905 is a reply to message #194651] Tue, 26 September 2006 02:07 Go to previous messageGo to next message
JRowbottom
Messages: 5933
Registered: June 2006
Location: Sunny North Yorkshire, ho...
Senior Member
Or, if you fancied actually giving the OP some help, you could at least point them to some PHP Online Help sites
Re: PHP and Oracle [message #194907 is a reply to message #194905] Tue, 26 September 2006 02:09 Go to previous messageGo to next message
JRowbottom
Messages: 5933
Registered: June 2006
Location: Sunny North Yorkshire, ho...
Senior Member
This looks like it might be some use
Re: PHP and Oracle [message #194909 is a reply to message #194907] Tue, 26 September 2006 02:12 Go to previous message
amul
Messages: 252
Registered: April 2001
Location: Chennai
Senior Member
WILL KEEP THAT ONE IN MIND Razz
Previous Topic: Oracle and PHP
Next Topic: PHP Tablename Issue
Goto Forum:
  


Current Time: Fri Aug 22 14:48:24 CDT 2014

Total time taken to generate the page: 0.22093 seconds