Getting a Parse error in my code - what am I missing? or Parse error: unexpected token - how do I fix

20 Replies, 1199 Views

For the "unexpected token" issue, it might be encoding like you said. Save the file as UTF-8 without BOM. Also, check for invisible chars with a hex editor if you’re desperate.

Fun fact: Some editors add BOM headers silently, and PHP hates that.

Messages In This Thread



Users browsing this thread: 1 Guest(s)