Home » Open Source » Programming Interfaces » Connect to oracle
Connect to oracle [message #292821] Wed, 09 January 2008 23:53 Go to next message
tanmoy1048
Messages: 133
Registered: June 2007
Senior Member
I just install php5 and apache2 in debian OS. And I have machine named "neptune" and a oracle (10.2.0.2) DB named "TEST".

Now how to connect it with php code?

thanx.
Re: Connect to oracle [message #292849 is a reply to message #292821] Thu, 10 January 2008 00:57 Go to previous messageGo to next message
tanmoy1048
Messages: 133
Registered: June 2007
Senior Member
I tried,
<?php
phpinfo();
$connection = oci_connect("PROD7","THWORD7","//neptune:1521/TEST");
if (!$connection) {
$e = oci_error();
echo htmlentities($e['message']);
} 
?>


and I got the error,
Fatal error: Call to undefined function oci_connect().

[Updated on: Thu, 10 January 2008 03:08]

Report message to a moderator

Re: Connect to oracle [message #292862 is a reply to message #292849] Thu, 10 January 2008 01:30 Go to previous message
Michel Cadot
Messages: 58573
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator
You have now 70 posts, you should know how to format them:
please read and follow OraFAQ Forum Guide, especially "How to format your post?" section.
Make sure that lines of code do not exceed 80 characters when you format. Use the "Preview Message" button to verify.
Always post your Oracle version (4 decimals).

Regards
Michel
Previous Topic: Connection breaks after Alter System flush Shared Pool
Next Topic: How do I Pass Params and Call A Simple PL/SQL Query from C#.NET 2.0?
Goto Forum:
  


Current Time: Fri Jul 25 20:56:31 CDT 2014

Total time taken to generate the page: 0.06872 seconds