/    Sign up×
Community /Pin to ProfileBookmark

What’s this error message mean?

[b]unexpected $end[/b]

It’s pointing to the last line (actually the line after the last line) in my script.

I’ve looked for missing end braces and semicolons…

to post a comment
PHP

3 Comments(s)

Copy linkTweet thisAlerts:
@NogDogFeb 22.2006 — It basically means [i]something[/i] was unterminated when it got to the end of the file. A {...} block is usually the culprit for me, but it might be a quote or some other grouping structure.
Copy linkTweet thisAlerts:
@strBeanauthorFeb 22.2006 — Yeah. Time to slog through line by line and find it...

Thanks again.
Copy linkTweet thisAlerts:
@NogDogFeb 22.2006 — It's times like this that I miss the good old line printers using fan-fold paper that you could then stretch out on a table, grab a colored pencil and ruler, and start marking out all your code blocks.

Uh-oh, I'm aging myself again. ?
×

Success!

Help @strBean spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.9,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...