Hi,
I'm sure that I'm not the first beginner, and perhaps this is a very easy question. My problem is the following:
1. I installed Php4 as an ISAPI filter on my mashine (I use IIS5). I had installed earlier an Oracle Client 8.1.7 (in the LAN there exists an Oracle server, too). I want to connect to the database through OCI, but it doesn't work, I always get one of the following errors: TNS error, or Access Violation error. I have no problems working with the database (for ex. with SQL* Plus), and I'd installed the OCI8, too. The PHP works fine, too, if I don't want to use the database functions.
Can somebody help me? I send a short part of my code:
<?php
PutEnv("ORACLE_SID=MYORA");
PutEnv("ORACLE_HOME=c:\Oracle");
$connection = OCILogon ("myname", "mypasswd");
if ($connection == false){
echo OCIError($connection)."<BR>";
exit;
}
?>
I'm sure that I'm not the first beginner, and perhaps this is a very easy question. My problem is the following:
1. I installed Php4 as an ISAPI filter on my mashine (I use IIS5). I had installed earlier an Oracle Client 8.1.7 (in the LAN there exists an Oracle server, too). I want to connect to the database through OCI, but it doesn't work, I always get one of the following errors: TNS error, or Access Violation error. I have no problems working with the database (for ex. with SQL* Plus), and I'd installed the OCI8, too. The PHP works fine, too, if I don't want to use the database functions.
Can somebody help me? I send a short part of my code:
<?php
PutEnv("ORACLE_SID=MYORA");
PutEnv("ORACLE_HOME=c:\Oracle");
$connection = OCILogon ("myname", "mypasswd");
if ($connection == false){
echo OCIError($connection)."<BR>";
exit;
}
?>