Skip to content

Instantly share code, notes, and snippets.

@robertcedwards
Created February 15, 2012 19:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save robertcedwards/1838421 to your computer and use it in GitHub Desktop.
Save robertcedwards/1838421 to your computer and use it in GitHub Desktop.
Using php environment variables to protect our settings from the public…
$pass = getenv('DB_PASSWORD');
$user = getenv('DB_USER' );
define('DB_PASSWORD', $pass);
define('DB_USER',$user);
@robertcedwards
Copy link
Author

Set up your variables on phpfog, then use them…

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment