Skip to content

Instantly share code, notes, and snippets.

@adarwash
Created November 8, 2014 23:11
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 adarwash/9ea7e5057072dbd6d15d to your computer and use it in GitHub Desktop.
Save adarwash/9ea7e5057072dbd6d15d to your computer and use it in GitHub Desktop.
Was unable to open sanitize.php file due to spelling mistake
<?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