note 64756 added to ref.pdo-oci

From: Date: Thu, 20 Apr 2006 09:43:22 +0000
Subject: note 64756 added to ref.pdo-oci
Groups: php.notes 
Request: Send a blank email to php-notes+get-108781@lists.php.net to get a copy of this message
If instant client has been installed but the full oracle client not yet ,you can use pdo to connect to oracle database like following coding: <?php $tns = " (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = yourip)(PORT = 1521)) ) (CONNECT_DATA = (SERVICE_NAME = orcl) ) ) "; $db_username = "youname"; $db_password = "yourpassword"; try{ $conn = new PDO("oci:dbname=".$tns,$db_username,$db_password); }catch(PDOException $e){ echo ($e->getMessage()); } ?> ---- Server IP: 61.129.33.155 Probable Submitter: 218.81.103.141 ---- X-Spam-Status: No, hits=3.8 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER, UPPERCASE_25_50 autolearn=no version=2.64 ---- Manual Page -- http://www.php.net/manual/en/ref.pdo-oci.php Edit -- http://master.php.net/note/edit/64756 Del: integrated -- http://master.php.net/note/delete/64756/integrated Del: useless -- http://master.php.net/note/delete/64756/useless Del: bad code -- http://master.php.net/note/delete/64756/bad+code Del: spam -- http://master.php.net/note/delete/64756/spam Del: non-english -- http://master.php.net/note/delete/64756/non-english Del: in docs -- http://master.php.net/note/delete/64756/in+docs Del: other reasons-- http://master.php.net/note/delete/64756 Reject -- http://master.php.net/note/reject/64756 Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#108781) next »