u did not specify which is Web server u r running
anyway if and only if it is Apache this is the way to secure login info
- goto the folder where u have stored ur scripts.
- create a file and name it as .htaccess
- put this text into it without quotes
"<Files db-include.inc>
order allow,deny
deny from all
</Files>"
- Save it, close it and create one more file...if u have guessed it...yup it is db-include.inc
- insert this text again without quotes into this file
"<?php
define('DB_USER', 'username');
define('DB_PASS', 'password');
define('DB_NAME', 'instance');
?>"
6. save it n close it
7. Now open the php file in from which u r trying to connect to oracle and insert this line just after <?php (yup without quotes)
"require('./db-include.inc');"
now here is how u r goin to reference it from ur php code
<?php
.
.
.
OCILogon(DB_USER,DB_PASS,DB_NAME);
.
.
.
?>
i think that must do it.
Regardz
Qwest