PDA

View Full Version : PHP explore mysql password!! HELP!!!!



kitson
March 7th, 2002, 06:10
As I use php to access mysql, I must have a file which contain the username and password to log into mysql.

That's the problem!!! In a SHARE host server, everyone who able to TELNET to the server will also able to view my password containing file. Is there any method to prevent it? Help me please.........:confused2

megapuzik
March 7th, 2002, 11:41
Try to use crypt() , search in the manuel

kitson
March 7th, 2002, 16:30
Thanks for your quick reply, but there still has problems.

Say as I have a share hosting account with you, I can telnet to the account, trace the file contain your username and password, even though you have crypt all data, I can just copy your file, or have a link to your file directly, in order to access your mySql database, and all your data can be disappear within one minute.
That's my question, is there anyway to protect my database, and also my password, in a 'telnetable' sharing host account. Thanks.:biggrin2:

megapuzik
March 7th, 2002, 17:25
There is a way called "bach" or something, I really dont know anything about this, sorry.