Jump to content

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


AndrewFTW

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:

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.