mrplatts Posted November 15, 2006 Share Posted November 15, 2006 I'm getting an error: Parse error: parse error, unexpected $ in /home3/mrplatts/mrplatts-www/sched/cal_setup.html on line 161I can't for the life of me figure out how i've got an error on that line since my file ends on line 160. Is this common? Rich Link to comment https://forums.phpfreaks.com/topic/27291-puzzled-error-on-line-beyond-last/ Share on other sites More sharing options...
doni49 Posted November 15, 2006 Share Posted November 15, 2006 That's usually a sign that one of the lines above is missing a quote, parenthesis, curly brace or semi-colon (;). Link to comment https://forums.phpfreaks.com/topic/27291-puzzled-error-on-line-beyond-last/#findComment-124799 Share on other sites More sharing options...
btherl Posted November 15, 2006 Share Posted November 15, 2006 And yes it is common.Whenever php gives you an "unexpected something" error, that means that the error occurs at OR BEFORE the line number indicated. It may even be on the first line. "Unexpected $" means "Unexpected end of file".The easiest way to fix it is to use a php editor with syntax highlighting. It will find the problem for you instantly. Link to comment https://forums.phpfreaks.com/topic/27291-puzzled-error-on-line-beyond-last/#findComment-124807 Share on other sites More sharing options...
mrplatts Posted November 15, 2006 Author Share Posted November 15, 2006 I am using jedit (MAC OS X) , the syntax highlighting seems pretty messed up. Apparently as soon as I started using an array the => messed up the syntaxing. I'l check it out on UltraEdit on my PC. --or squint at the code for a bit.Rich Link to comment https://forums.phpfreaks.com/topic/27291-puzzled-error-on-line-beyond-last/#findComment-124825 Share on other sites More sharing options...
mrplatts Posted November 15, 2006 Author Share Posted November 15, 2006 Thanks for your help. now I know what to look for! Link to comment https://forums.phpfreaks.com/topic/27291-puzzled-error-on-line-beyond-last/#findComment-124844 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.