ted_chou12 Posted May 27, 2007 Share Posted May 27, 2007 Can anyone please tell me what the error: Parse error: syntax error, unexpected T_STRING, expecting ')' in /www/.. on line 364 means? This is line 364: '_MEMBER MENU' => '...', and the whole thing is an array, this is just part of it. Thanks, Ted Quote Link to comment https://forums.phpfreaks.com/topic/53171-parse-error-syntax-error-unexpected-t_string-expecting-in-www/ Share on other sites More sharing options...
Diego17 Posted May 27, 2007 Share Posted May 27, 2007 The line php reports is the last possible location of the error. But it can be located before. Quote Link to comment https://forums.phpfreaks.com/topic/53171-parse-error-syntax-error-unexpected-t_string-expecting-in-www/#findComment-262673 Share on other sites More sharing options...
ted_chou12 Posted May 27, 2007 Author Share Posted May 27, 2007 This is not the last line, and I have checked the last line, which is okay, but I cannot post the whole array up here, is about 2000 lines long... Quote Link to comment https://forums.phpfreaks.com/topic/53171-parse-error-syntax-error-unexpected-t_string-expecting-in-www/#findComment-262674 Share on other sites More sharing options...
AndyB Posted May 27, 2007 Share Posted May 27, 2007 As noted, line 364 is where the interpreter chokes not (necessarily) where the error exist. Check preceding lines of the file - that's where there's an error. Quote Link to comment https://forums.phpfreaks.com/topic/53171-parse-error-syntax-error-unexpected-t_string-expecting-in-www/#findComment-262676 Share on other sites More sharing options...
Diego17 Posted May 27, 2007 Share Posted May 27, 2007 for example <?php array( 'a'=>1, 'b'=>2 'c'=>3); ?> php says error on line 5 but the real error is located on line 4, the missing comma after 'b'=>2 Quote Link to comment https://forums.phpfreaks.com/topic/53171-parse-error-syntax-error-unexpected-t_string-expecting-in-www/#findComment-262689 Share on other sites More sharing options...
trq Posted May 27, 2007 Share Posted May 27, 2007 Please... were not mind readers. Post the relevent parts of your code. Quote Link to comment https://forums.phpfreaks.com/topic/53171-parse-error-syntax-error-unexpected-t_string-expecting-in-www/#findComment-262691 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.