Rev 26 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
<?php
// Several ways to do this. You can set up the correct variables here
/*
// name of database to connect to
$db_name = 'camp';
// username for the connection
$db_username = 'joe';
// password for the connection
$db_password = 'jane';
// hostname for the connection (defaults to 127.0.0.1)
$db_hostname = '127.0.0.1';
*/
/*
* I prefer to move my config file outside of DocumentRoot
* then, include_once it into this. It can be done multiple ways
* and there are others that are better, but I have the config
* stored one level up from DocumentRoot, and named it camp2_config.php
*/
// we dont' want it visible, so just include it this way.
include_once( realpath( $_SERVER['DOCUMENT_ROOT'] . '/../camp2_config.php' ) );
?>