note 563 deleted from ref.oracle by danbrown
| From: | danbrown@php.net | Date: | Fri, 28 Nov 2008 22:25:20 +0000 |
| Subject: | note 563 deleted from ref.oracle by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-147341@lists.php.net to get a copy of this message | ||
Note Submitter: cord at ragesoft dot com
----
Using "@dbname" in ora_logon/ora_plogon will force a SQL*Net connect, even if the database
is on the local host. It's more efficient to use the ORACLE_SID environment variable.
<?php
putenv( "ORACLE_SID=dbname" );
$handle = ora_plogon( "SCOTT", "TIGER");
?>