2

This is probably true for other languages as well. I've created several websites by now, many of which use databases (usually mySQL). I need to store the database password somewhere in the sourcecode, but this seems like a security problem, and a a bit like a hack. Is there a better way to store the password, apart from a config file which is included everywhere I need to use the database?

Duplicate: How to secure database passwords in PHP?

Community
  • 1
  • 1
Marius
  • 57,995
  • 32
  • 132
  • 151

1 Answers1

1

a config file that isn“t reachable from outside, sotre ist somewhere exept of htdocs etc.

Tobias
  • 7,238
  • 10
  • 46
  • 77