[PHP] Unexpected $end troubles

Glaanieboy

OSNN Veteran Addict
Joined
Mar 6, 2002
Messages
2,626
#1
I am currently recoding my songviewer script, all coding is fine (I think), but it keeps giving me this error:
Parse error: parse error, unexpected $end in C:\Apache2\htdocs\songviewer\songviewer.php on line 127
Line 127 contains a ?>, meaning the end of the script. Can someone take a look at the code and tell me what's wrong?
http://glaanieboy.dyndns.org/songviewer/songviewer.phps
 

Glaanieboy

OSNN Veteran Addict
Joined
Mar 6, 2002
Messages
2,626
#2
Never mind, I solved it. The link is now dead, that you know it ;) I forgot to end an if statement :doh:
 

SPeedY_B

I may actually be insane.
Joined
Mar 31, 2002
Messages
15,800
#3
Heh, that's always what it is when you're closing tag is the line causing the error. Very frustrating when you have a large script to work with and many end statements. Glad you sorted it though :)
 

Glaanieboy

OSNN Veteran Addict
Joined
Mar 6, 2002
Messages
2,626
#4
It frustrated me till the bone :mad: I made the fatal error of creating very large script (with some copy -> paste movements) without testing the parts. But I found the error in the end :)D), so I am happy now.
 

Geffy

OSNN Veteran Addict
Joined
Mar 18, 2002
Messages
7,805
#5
this is why I use Maguma PHP Studio, it does the Matchin Braces {} so you can highlight a brace, click the button to find the matching brace and it then highlights the area of code contained within the matching braces, it helps find things like this
 

Glaanieboy

OSNN Veteran Addict
Joined
Mar 6, 2002
Messages
2,626
#6
I tried maguma, but it's slow for my machine for some reason and it takes quite some time to startup. I'll keep tsWebeditor for now.
 

Members online

No members online now.

Latest posts

Latest profile posts

Perris Calderon wrote on Electronic Punk's profile.
Hey ep!

All good with me, applying for microsoft mvp right now, should have done this a while ago.

Notifications don't work, I only found your response by comming back to hunt up some threads, if you want, give me your email address so we can keep in touch easier, mine is perriscalderon at gmail
Perris Calderon wrote on Electronic Punk's profile.
Ep, glad to see you come back and tidy up...did want to ask a one day favor, I want to enhance my resume , was hoping you could make me administrator for a day, if so, take me right off since I won't be here to do anything, and don't know the slightest about the board, but it would be nice putting "served administrator osnn", if can do, THANKS

Been running around Quora lately, luv it there https://tinyurl.com/ycpxl
Electronic Punk wrote on Perris Calderon's profile.
All good still mate?
Hello, is there anybody in there? Just nod if you can hear me ...

Forum statistics

Threads
62,029
Messages
673,539
Members
89,038
Latest member
Samhicks