Go Back   CodingForums.com > :: Server side development > PHP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 02-01-2007, 04:13 PM   PM User | #1
Flic
New Coder

 
Join Date: May 2006
Posts: 51
Thanks: 0
Thanked 0 Times in 0 Posts
Flic is an unknown quantity at this point
Unhappy Parse error: syntax error, unexpected $end

Hi.

I'm only a beginner on PHP but keep getting the message in the title as an error when I upload the page.

The line number it applies to is always on the last line, even if that line is blank.

Anyone know why and how to fix?

Thanks, Flic
Flic is offline   Reply With Quote
Old 02-01-2007, 04:18 PM   PM User | #2
_Aerospace_Eng_
Supreme Master coder!


 
_Aerospace_Eng_'s Avatar
 
Join Date: Dec 2004
Location: In a place far, far away...
Posts: 19,293
Thanks: 2
Thanked 1,044 Times in 1,020 Posts
_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light
How the heck can we possibly know how to fix it if you haven't posted any code or what the error message was?
__________________
||||If you are getting paid to do a job, don't ask for help on it!||||
_Aerospace_Eng_ is offline   Reply With Quote
Old 02-01-2007, 05:48 PM   PM User | #3
Flic
New Coder

 
Join Date: May 2006
Posts: 51
Thanks: 0
Thanked 0 Times in 0 Posts
Flic is an unknown quantity at this point
I did post the error, its in the title!
Flic is offline   Reply With Quote
Old 02-01-2007, 06:01 PM   PM User | #4
Mwnciau
Regular Coder

 
Join Date: May 2006
Location: Wales
Posts: 820
Thanks: 1
Thanked 82 Times in 79 Posts
Mwnciau is on a distinguished road
I think thats because you havent closed some {} tags
Mwnciau is offline   Reply With Quote
Old 02-01-2007, 06:04 PM   PM User | #5
_Aerospace_Eng_
Supreme Master coder!


 
_Aerospace_Eng_'s Avatar
 
Join Date: Dec 2004
Location: In a place far, far away...
Posts: 19,293
Thanks: 2
Thanked 1,044 Times in 1,020 Posts
_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light
But you haven't posted your code. Not everyone's code is the same you know. Post YOUR code. Stop making us guess.
__________________
||||If you are getting paid to do a job, don't ask for help on it!||||
_Aerospace_Eng_ is offline   Reply With Quote
Old 02-01-2007, 06:04 PM   PM User | #6
neomaximus2k
Regular Coder

 
Join Date: Jan 2007
Posts: 213
Thanks: 0
Thanked 0 Times in 0 Posts
neomaximus2k is an unknown quantity at this point
if you are using any loops then check that they have all been closed

e.g
Code:
if (this is the statement){
###do somet
}
as you can see all loops start with a { and end with a }

failing that post your code and this will allow us to find where the problem is.
__________________
Matthew Bagley
Paramiliar Design Studios
Website Design | Website Development | Search Engine Optimisation (SEO)
neomaximus2k is offline   Reply With Quote
Old 02-01-2007, 08:44 PM   PM User | #7
Flic
New Coder

 
Join Date: May 2006
Posts: 51
Thanks: 0
Thanked 0 Times in 0 Posts
Flic is an unknown quantity at this point
Ah ha! It was a missing } , apparently when I deleted a chunk I accidentaly deleted that too! I should have thought to look for that but it was the fact is was coming up with the error on the last line that got me, but then now I know what it was I'm guessing it was expecting it later.

The reason I didn't want to post the code unless absolutely necessary was because I have done before and the threads now appear in google when looking for the site. Is there a way to remove threads on here? I couldn't see one.
Flic is offline   Reply With Quote
Old 02-01-2007, 08:55 PM   PM User | #8
Alex!
Regular Coder

 
Join Date: Oct 2006
Location: Bristol
Posts: 128
Thanks: 0
Thanked 0 Times in 0 Posts
Alex! is an unknown quantity at this point
Why do you want to remove a thread? If you've got a problem and you solve it then you can leave it for others to find when they have the same problem.

Alex
Alex! is offline   Reply With Quote
Old 02-01-2007, 11:23 PM   PM User | #9
Flic
New Coder

 
Join Date: May 2006
Posts: 51
Thanks: 0
Thanked 0 Times in 0 Posts
Flic is an unknown quantity at this point
Not this one, but other ones where I (stupidly) actually put the whole url in the message so it comes up in google as mentionned. Boss googled it once and wants it off.
Flic is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 10:18 PM.


Advertisement
Log in to turn off these ads.