Avoid Typing Passwords In my Scripts
Posted: Sun Jan 01, 2006 9:21 am
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
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