note 27061 modified in function.oci-pconnect by sixd

From: Date: Wed, 09 Dec 2009 22:40:19 +0000
Subject: note 27061 modified in function.oci-pconnect by sixd
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-163792@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.oci-pconnect.php

« previous php.notes (#163792) next »