any ideas on OCI8 config with WIN
| From: | Kevin Obbayi | Date: | Tue, 08 Aug 2000 19:34:18 +0000 |
| Subject: | any ideas on OCI8 config with WIN | ||
| Groups: | php.general php.general | ||
| Request: | Send a blank email to php-general+get-10768@lists.php.net to get a copy of this message | ||
Help!!! I am trying to connect to an Oracle via windows NT4, I added the
following line to y php3.ini file, "extension=php3_oci80.dll" I then
restarted the server, Now when I try a simple connect to the database via
OCILogon() the browser just sits there waiting for a reply. No error
messages are returned.
I then I used the phpinfo() function for view the configuration information
and when I get to the row describing OCI8, the descriptive/Additional
Information column is blank. What am I missing? Was I supposed to add
anything else to the php3.ini file? Is this a bug? Please help.
here is a sample of my code
putenv("ORACLE_HOME=D:\Oracle\Ora81\NETWORK\ADMIN\tnsnames.ora");
putenv("ORACLE_SID=DB");
putenv("ORACLE_BASE=D:\Oracle\Ora81");
$conn = OCILogon("scott", "tiger");
if ($conn){
OCILogOff($conn);
echo "Connected to database <BR><BR>";
}else
echo "Not Connected to database <BR><BR>";
thanks
Kevin