PHP 4.0 Bug #10206 Updated: PHP in CGI mode fails to perform OCILogon
| From: | sniper@php.net | Date: | Fri, 06 Apr 2001 15:14:10 +0000 |
| Subject: | PHP 4.0 Bug #10206 Updated: PHP in CGI mode fails to perform OCILogon | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-51042@lists.php.net to get a copy of this message | ||
ID: 10206
Updated by: sniper
Reported By: nick@tf.kharkov.net
Old-Status: Open
Status: Feedback
Bug Type: OCI8 related
Assigned To:
Comments:
Just wondering if you have all the necessary environment
variables set? Check the manual page http://www.php.net/oci8
--Jani
Previous Comments:
---------------------------------------------------------------------------
[2001-04-06 08:47:51] nick@tf.kharkov.net
When I use php in CGI mode any script can't connect to the Oracle DB throught the OCILogon
call.
When I switch to the ISAPI mode these scripts work OK.
the sample script:
<?php
$dbuser="scott";
$dbpass="tiger";
$dbhost="devnt01";
if (! $dbconn=OCILogon($dbuser,$dbpass,$dbhost))
print("Cannot connect to oracle db '$dbhost' as user
'$dbuser'");
?>
oracle reports:
ORA-12154: TNS:could not resolve service name in C:InetPubwwwroottest.php4 on line 5
---------------------------------------------------------------------------
ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=10206&edit=2