Home » Open Source » Programming Interfaces » oracle and php
oracle and php [message #238673] Fri, 18 May 2007 23:30
shakeelkhan_bk
Messages: 11
Registered: May 2007
Location: pakistan
Junior Member
first of all sorry for putting it here.but i got no specific link for php section so ....
i face prob in oracle10g connectivity with php.i follow these steps plz check out this where i do any mistake.
1-i installed (10g,apache2,and php5) at two pc's that are the part of lan.
2-i uncomment the php_oci8.dll from php.ini.
3-install oralce client 10.1 and make it's net configration with oracle data base .it's working and ok.
4-i introduce an enviromenatl variable tns_admin and give him the complete path of tnsnames.ora as c:\oracle\product\client_1.0\network\admin\tnsnames.ora.
5-then i write a code for testing that is
<?PHP
if
($c=OCILogon("scott","Tiger","testdb"))
{
echo("successfull");
OCILogoff($c);
}
else
{
$err=OCIError( );
echo("Can't Connect");
}
?>
6-when i test this code no output means both echo are not displaying any message ,when i put echo before if statments it show message but when i put after if it's not display .it's mean my if condition create any halt situation .plzz help me.
Previous Topic: Have a doubt in File handling in Perl
Next Topic: Modifying a passwoed on a front end application
Goto Forum:
  


Current Time: Fri Mar 29 10:24:42 CDT 2024