|
Connect to oracle [message #292821] |
Wed, 09 January 2008 23:53  |
tanmoy1048 Messages: 83 Registered: June 2007 |
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   |
tanmoy1048 Messages: 83 Registered: June 2007 |
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]
|
|
|
| Re: Connect to oracle [message #292862 is a reply to message #292849 ] |
Thu, 10 January 2008 01:30  |
Michel Cadot Messages: 17653 Registered: March 2007 Location: Nanterre, France, http://... |
Senior Member |
|
|
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
|
|
|