weird error: unexpected $ on line... ( last line )

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
pedrotuga
Forum Contributor
Posts: 249
Joined: Tue Dec 13, 2005 11:08 pm

weird error: unexpected $ on line... ( last line )

Post by pedrotuga »

does anybody knows what might be causing this?

Code: Select all

Parse error: parse error, unexpected $ in /var/www/mostra_grupos.php on line 205
line 205 is my last line and it simply has:

Code: Select all

?>
User avatar
Stoker
Forum Regular
Posts: 782
Joined: Thu Jan 23, 2003 9:45 pm
Location: SWNY
Contact:

Post by Stoker »

$ means end of file... missing } or ) perhaps :)
User avatar
pedrotuga
Forum Contributor
Posts: 249
Joined: Tue Dec 13, 2005 11:08 pm

Post by pedrotuga »

Stoker wrote:$ means end of file... missing } or ) perhaps :)
yes, thank you!
it was a missing }

my editor ( notepad2 ) has a little bug... sometimes it get confused with the brackets highlight... i had writen good code, but the editor higlighted one bracket as unopen... i trusted it...

well.. in the army they say: "the hardware is allways right"... well.... not allways ( though in this case was the software ) lol
Post Reply