Jump to content

Parse error: syntax error, unexpected T_LNUMBER


247earnings

Recommended Posts

Hi,

This is my first posting so I hope I'm doing it correctly.  I am having trouble with my wp-settings.php script.  I am a complete newbie so I need your help.  I have researched for 2 hours but can't seem to find the answer.  Can you help me?

 

The error I am receiving is:

 

Parse error: syntax error, unexpected T_LNUMBER in /home1/twofoux0/public_html/realwealthcreator/wp-settings.php on line 31

 

Attached is an excerpt of the script:

 

 

 

 

[attachment deleted by admin]

Try commenting everything in that function and try to run it. If there are no errors there is definitely a LONG NUMBER error in that function.

 

<?PHP
function wp_unregister_GLOBALS() {
/*
if ( !ini_get('register_globals') )
	return;

if ( isset($_REQUEST['GLOBALS']) )
	die('GLOBALS overwrite attempt detected');

// Variables that shouldn't be unset
$noUnset = array('GLOBALS', '_GET', '_POST', '_COOKIE', '_REQUEST', '_SERVER', '_ENV', '_FILES', 'table_prefix');

$input = array_merge($_GET, $_POST, $_COOKIE, $_SERVER, $_ENV, $_FILES, isset($_SESSION) && is_array($_SESSION) ? $_SESSION : array());
foreach ( $input as $k => $v )
	if ( !in_array($k, $noUnset) && isset($GLOBALS[$k]) ) {
		$GLOBALS[$k] = NULL;
		unset($GLOBALS[$k]);
	}
*/
}
?>


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.