I'm getting this error for my script:
Parse error: parse error, unexpected $ in /home/name/public_html/page.php on line 65
This is a blank line after the script ends. Must be something in the code causeing it but no idea what?
Weird error
Moderator: General Moderators
You probably just put a $ where it shouldn't be....like if you did this:
and it should be:
that may be the kind of thing you did, so just check. If not, it would be nice to see line 65.
later on, -Brian
Code: Select all
if(session_is_registered("$registered"))Code: Select all
if(session_is_registered("registered"))later on, -Brian
- gite_ashish
- Forum Contributor
- Posts: 118
- Joined: Sat Aug 31, 2002 11:38 am
- Location: India
Re: Weird error
Hi,
ERROR:
Parse error: parse error, unexpected $ in /home/name/public_html/page.php on line 65
>> This is a blank line after the script ends. <<
The above line is important. If line 65 is the last line, then i think you are having some { or } mismatch.
Check the constructs like - if, else, while, for - etc.
All the best,
ERROR:
Parse error: parse error, unexpected $ in /home/name/public_html/page.php on line 65
The above line is important. If line 65 is the last line, then i think you are having some { or } mismatch.
Check the constructs like - if, else, while, for - etc.
All the best,