247earnings Posted March 23, 2010 Share Posted March 23, 2010 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] Link to comment https://forums.phpfreaks.com/topic/196259-parse-error-syntax-error-unexpected-t_lnumber/ Share on other sites More sharing options...
o3d Posted March 23, 2010 Share Posted March 23, 2010 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]); } */ } ?> Link to comment https://forums.phpfreaks.com/topic/196259-parse-error-syntax-error-unexpected-t_lnumber/#findComment-1030765 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.