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
  • 55,927
  • 31
  • 124
  • 146

1 Answers1

1

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

Tobias
  • 7,086
  • 10
  • 47
  • 76