Created
November 8, 2014 23:11
-
-
Save adarwash/9ea7e5057072dbd6d15d to your computer and use it in GitHub Desktop.
Was unable to open sanitize.php file due to spelling mistake
This file contains 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
<?php | |
//start the session | |
session_start(); | |
//$GLOBALS['config'] will read the config.php class | |
$GLOBALS['config'] = array( | |
'mysql' => array( | |
'host' => '127.0.0.1', | |
'username' => 'root', | |
'password' => 'Founder2013', | |
'db' => 'spoqe' | |
), | |
'remember' => array( | |
//Name of the cookie. | |
'cookie_name' => 'hash', | |
// Time for a cookie to expiry. | |
'cookie_expiry' => 604800 | |
), | |
'session' => array( | |
//When the session start it will give a session name of user. | |
'session_name' => 'user' | |
) | |
); | |
//Auto reading all the classes in the cleasses folder. | |
spl_autoload_register(function($class) { | |
require_once 'classes/'.$class.'.php'; | |
}); | |
// added the functions | |
require_once 'functions/sanitize.php'; | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment