Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
hi,
I am working in PHP. I just want to establish a connection to oracle database.
Say my sid is ='hi32' userid='aaaa' passwd='bbbb'.
i tried following script.
<?php
putenv('ORACLE_SID=hi32');
putenv('ORACLE_HOME=C:\oracle\product\10.2.0\client_1');
putenv('TNS_ADMIN=C:\oracle\product\10.2.0\client_1\NETWORK\ADMIN');
$ora_conn = oci_connect('aaaa', 'bbbb', 'hi32');if ($ora_conn == "0")
{
echo "success";
}
else
{
echo "failure";
}
?>
when i execute this script i am getting error
PHP Fatal error: Call to undefined function oci_connect() in C:\Program Files\P
HP\programs\DbConnect.php on line 5.DBConnect.php is script name. Please help me out... thanks in advance

![]() |
Batch help
|
Moving a file x days old
|

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |