Guys I just made small changed to my php code and after these changes I am getting this error. Before small changes code was working fine. I tried to find where I have open tags, braces, etc but find nothing. How I can find exact which line has problem as this error lead to the end of file. Any editor or debugger that can lead to the exact line.? Right now I am using CuteFTP to edit my files at PC and then upload at my site. I also used 1st page to find exact line where there is error but fail. Help me please GCS
Hi, If error message is like "unexpected $end " it is surely becoz of some unbalanced curly braces . check your if ,while and loops to balance them it will defiantly solve ur problem
You people did not read my post very well. I already told I checked code but did not find any thing. Looking if there is any debugger or editor that can point out exact line where is error? GCS
thats because your not giving the error message. "I just made small changed to my php code and after these changes I am getting this error. Before small changes code was working fine." then what is the error? (error message)
this is caused by unclosed lines or unclosed conditions.. check the lines in range of line 273, and all the conditions that pass line 273
u will not find exact line no of error if the error is becoz of missing curly braces "Parse error: syntax error, unexpected $end"
What I did to solve this issue is restored file from backup and made all changes carefully and it worked. GCS
post your code its probably a ; at the end of one of your variables is missing. OR, you have a if($somethin){ (a function inside a function? ..missing bracket, missing ; ??? } (missing ) you say you checked your code. But that error is because youre missing a piece of code. period. Check it again.