note 11096 rejected from function.ocilogon by didou

From: Date: Tue, 12 Aug 2003 08:37:33 +0000
Subject: note 11096 rejected from function.ocilogon by didou
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-53969@lists.php.net to get a copy of this message
Note Submitter: busch@twinoffice.de ---- There seems to be a problem with PHP reading the tnsnames.ora file even when the tns_admin and oracle home enviroments are set If you get an ORA-12154 error but can connect to the database via sql plus then all you need to do is to copy the values from your tnsnames.ora file into a variable and use that as the database like this $db = " (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = 127.0.0.1)(PORT = 1521)) (CONNECT_DATA = (SID = ORCL)) )"; $c1 = ocilogon("test","test",$db); and this will allow you to access the database If anybody knows how to get php to read the tnsnames file , I would be gratefull if you could inform us

« previous php.notes (#53969) next »