Re: hiding db password

From: Date: Thu, 12 Jun 2003 14:38:22 +0000
Subject: Re: hiding db password
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-28576@lists.php.net to get a copy of this message
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

« previous php.db (#28576) next »