What is the best way to keep your MySQL credentials private in PHP?

前端 未结 4 554
孤独总比滥情好
孤独总比滥情好 2021-01-25 18:37

When it comes to programming your web application in php, what is the most efficient way to prevent your MySQL information from being disclosed or discovered by another person (

4条回答
  •  生来不讨喜
    2021-01-25 19:14

    Classes, includes? Plenty of ways to do it but ultimately if someone has access to the unparsed PHP files, they'll have your MySQL login details.

提交回复
热议问题