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 Quote Link to comment 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 (;). Quote Link to comment 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. Quote Link to comment 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 Quote Link to comment 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! Quote Link to comment 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.