Jump to content

Parse error: syntax error, unexpected T_FUNCTION, expecting ')' in /


Recommended Posts

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:


$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.

Link to comment
Share on other sites

This thread is more than a year old.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.