AndrewFTW Posted February 5, 2015 Share Posted February 5, 2015 I have a error in line 24 on my code Code error on website: Parse error: syntax error, unexpected T_FUNCTION, expecting ')' in /core/init.php on line 24 Here's the code: <?php session_start(); $GLOBALS['config'] = array( 'mysql' => array( 'host' => 'i added my host here', 'username' => 'i added my username', 'password' => 'and pass', 'db' => 'and password' ), 'remember' => array( 'cookie_name' => 'hash', 'cookie_expiry' => 604800 ), 'session' => array( 'session_name' => 'users', 'token_name' => 'token' ) ); error here: spl_autoload_register(function($class) { require_once 'classes/' . $class . '.php'; }); require_once 'functions/sanatize.php'; I don't know what it means by the error. But its around where i said the error is. Quote Link to comment Share on other sites More sharing options...
gizmola Posted February 5, 2015 Share Posted February 5, 2015 What version of php are you working with? Quote Link to comment Share on other sites More sharing options...
AndrewFTW Posted February 5, 2015 Author Share Posted February 5, 2015 What version of php are you working with? The newest php Quote Link to comment Share on other sites More sharing options...
AbraCadaver Posted February 6, 2015 Share Posted February 6, 2015 The newest php Doubtful, what's the actual version number from php -v? Quote Link to comment Share on other sites More sharing options...
cyberRobot Posted February 6, 2015 Share Posted February 6, 2015 Note that you can use phpinfo() to find out. More information can be found here: http://php.net/manual/en/function.phpinfo.php Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.