on 12/6/03 3:31 pm, Sallee, Helen at [EMAIL PROTECTED] wrote:

> <?php
> putenv("TWO_TASK=ORCL2");
> putenv("ORACLE_HOME=/u01/home/oracle/product/9.2.0");
> $conn = OCILogon("USER1","USER1PASS");
> $query = OCIParse($conn,"select * from state");
> OCIExecute($query);
> ?>
> 
> Thank you

Use an include file buried below your site root with

$user=USER1;
$pass=USER1PASS;

Then you should be able to do:

Include"/path/to/pass.inc.php";
<snip>
$conn = OCILogon("$user","$pass");

Which is more secure.

-- 
Mike Karthauser 
Managing Director - Brightstorm Ltd

Email       >> [EMAIL PROTECTED]
Web         >> http://www.brightstorm.co.uk
Tel         >> 0117 9426653 (office)
               07939 252144 (mobile)

Snailmail   >> Unit 8, 14 King Square,
               Bristol BS2 8JJ


-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to