Last active
August 29, 2015 14:27
-
-
Save terrymun/343727af0905b042f66d to your computer and use it in GitHub Desktop.
Securing database connection information
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <files config.php> | |
| order allow, deny | |
| deny from all | |
| </files> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| define(DB_HOST, 'localhost'); | |
| define(DB_NAME, 'database_name'); | |
| define(DB_USER, 'database_user'); | |
| define(DB_PASS, 'database_user_pass'); | |
| ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment