Re: hiding db password

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



on 12/6/03 3:31 pm, Sallee, Helen at helen.sallee@verizon.com 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       >> mikek@brightstorm.co.uk
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


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux