note 27061 modified in function.ociplogon by sixd

From: Date: Mon, 05 Oct 2009 01:23:28 +0000
Subject: note 27061 modified in function.ociplogon by sixd
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-161273@lists.php.net to get a copy of this message
If your oracle database is on a remote system within your local network and you don't want to worry about the tnsnames file you can try this. $db = "(DESCRIPTION=(ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.XX.XXX)(PORT = 1521)))(CONNECT_DATA=(SID=XXXX)))"; $c1 = ocilogon("name","password",$db); Hope this helps someone. --was-- If your oracle database is on a remote system within your local network and you don't want to worry about the tnsnames file you can try this. $db = "(DESCRIPTION=(ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.XX.XXX)(PORT = 1521)))(CONNECT_DATA=(SID=XXXX)))"; $c1 = ocilogon("name","password",$db); Hope this helps someone. http://php.net/manual/en/function.ociplogon.php

« previous php.notes (#161273) next »