Skip to content

Instantly share code, notes, and snippets.

@maclochlainn
Last active December 12, 2015 02:38
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 maclochlainn/4699803 to your computer and use it in GitHub Desktop.
Save maclochlainn/4699803 to your computer and use it in GitHub Desktop.
This is a standard credentials.inc file, which allows you to place your connection variables in a single location and refer to them by the global variable names.
<?php
// Program name: credentials.inc
// MySQL Connection variables.
define('HOSTNAME',"localhost");
define('USERNAME',"student");
define('PASSWORD',"student");
define('DATABASE',"studentdb");
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment