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 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. 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... 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. 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 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. 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
Archived
This topic is now archived and is closed to further replies.