Computing.Net > Forums > Programming > Ora DB Connect in PHP

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Ora DB Connect in PHP

Reply to Message Icon

Name: arun_s010
Date: January 22, 2007 at 04:15:14 Pacific
OS: Windows2003
CPU/Ram: 256MB
Product: DELL
Comment:

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



Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


Batch help Moving a file x days old



Post Locked

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


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: Ora DB Connect in PHP

Mysql connect using PHP www.computing.net/answers/programming/mysql-connect-using-php/5718.html

problem with date() function in PHP www.computing.net/answers/programming/problem-with-date-function-in-php/8855.html

can't set cookie in php www.computing.net/answers/programming/cant-set-cookie-in-php/10659.html