Skip to content

Instantly share code, notes, and snippets.

@terrymun
Last active August 29, 2015 14:27
Show Gist options
  • Save terrymun/343727af0905b042f66d to your computer and use it in GitHub Desktop.
Save terrymun/343727af0905b042f66d to your computer and use it in GitHub Desktop.
Securing database connection information
<files config.php>
order allow, deny
deny from all
</files>
<?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