SitePoint Sponsor

User Tag List

Results 1 to 6 of 6
  1. #1
    SitePoint Guru TacMaf's Avatar
    Join Date
    Dec 2005
    Location
    Manchester, United Kingdom
    Posts
    663
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question What is this error message?

    Hi, this is a new error message for me and I can't seem to find the problem in my script, can anyone please explain this:

    Parse error: syntax error, unexpected $end in /home/www/tacticalmafia.com/kill.php on line 920

    Thanks

  2. #2
    Follow Me On Twitter: @djg gold trophysilver trophybronze trophy Dan Grossman's Avatar
    Join Date
    Aug 2000
    Location
    Philadephia, PA
    Posts
    20,578
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Usually means a closing curly brace } is missing somewhere, so PHP wasn't expecting to hit the last line of some code block (or the whole file) without seeing it.

  3. #3
    SitePoint Zealot Osprey's Avatar
    Join Date
    Jan 2006
    Posts
    156
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I believe I had this error earlier and it was because I had failed to use close quotation marks. It may be that you haven't closed something properly.

    Edit: Or maybe it was that I didn't use the closing '}' as Dan has suggested.

  4. #4
    SitePoint Guru TacMaf's Avatar
    Join Date
    Dec 2005
    Location
    Manchester, United Kingdom
    Posts
    663
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks, I will check all 919 lines now

  5. #5
    SitePoint Guru TacMaf's Avatar
    Join Date
    Dec 2005
    Location
    Manchester, United Kingdom
    Posts
    663
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Got it, that's better thanks guys.

  6. #6
    Follow Me On Twitter: @djg gold trophysilver trophybronze trophy Dan Grossman's Avatar
    Join Date
    Aug 2000
    Location
    Philadephia, PA
    Posts
    20,578
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by TacMaf View Post
    Thanks, I will check all 919 lines now
    Coding in an IDE that either highlights matching pairs of curly braces, or even better, has code folding (expand or minimize functions/methods/classes) can make it easy to spot missing pairs.

    PHP Development Tools for Eclipse (formerly Eclipse PHP IDE) does both and much more, runs on any platform, and is free.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •