hi all ....
I connect to oracle database from my script, but i don't want to write the database username & password explicitly in the script (eg. ora_connect($username,$password))
what i'm thinking of is to make the database administrator set the username and the password and put them in the memory, so all scripts can see them.
the question is (HOW???)
i tried to use getenv() and putenv() but didn't work.
please help me.
thanx in advance
Avoid Typing Passwords In my Scripts
Moderator: General Moderators
-
d3ad1ysp0rk
- Forum Donator
- Posts: 1661
- Joined: Mon Oct 20, 2003 8:31 pm
- Location: Maine, USA
Re: Avoid Typing Passwords In my Scripts
I prefer the solution mentioned near the end of this article:ashosheh wrote:I connect to oracle database from my script, but i don't want to write the database username & password explicitly in the script
http://shiflett.org/articles/security-corner-mar2004
Hope that helps.