Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

unable to connet to oracle db from php

Status
Not open for further replies.

nkmb

Programmer
May 10, 2006
33
US
Hi All,

I am trying to connect to oracle db from PHP.But it's not connecting.i did't put any host String while installing Oracle9i.

my code:

<code>

<?php
if ($c=OCILogon("scott", "tiger", ""))
{
echo "Successfully connected to Oracle.\n";
OCILogoff($c);
}
else {
$err = OCIError();
echo "Oracle Connect Error " . $err[text];
}
?>


</code>


what should i do to connect Oracle.Anybody reply me as soon as possible.

thanks
nkmb
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top