What is the best way to keep your MySQL credentials private in PHP?
问题 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 (third party)? The information would include domain names and log in and passwords used in the connet functions. For an example a good procedure might be keeping your mysql connection functions in a separate php file, etc. Any ideas? 回答1: Keep your credentials in a separate .php file outside the document root (so it is