Created
February 15, 2012 19:43
-
-
Save robertcedwards/1838421 to your computer and use it in GitHub Desktop.
Using php environment variables to protect our settings from the public…
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
$pass = getenv('DB_PASSWORD'); | |
$user = getenv('DB_USER' ); | |
define('DB_PASSWORD', $pass); | |
define('DB_USER',$user); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Set up your variables on phpfog, then use them…