Unexpected $end

Discussion in 'PHP' started by squishi, Feb 23, 2008.

  1. #1
    I get this error on a script that I recently modified:
    XXX is the end of the file.

    All I did was cut some piece out of the script that I no longer need.
    I already made sure that there are no blank spaces after the closing "?>".
    And I am pretty sure that I didn't remove any of the brackets.

    What is the best way to debug this? :confused:
     
    squishi, Feb 23, 2008 IP
  2. nico_swd

    nico_swd Prominent Member

    Messages:
    4,153
    Likes Received:
    344
    Best Answers:
    18
    Trophy Points:
    375
    #2
    According to the error, you did.
     
    nico_swd, Feb 23, 2008 IP
  3. squishi

    squishi Peon

    Messages:
    58
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I just read that this error can also be because of a missing ending quote.
    I will check the code for that now.
     
    squishi, Feb 23, 2008 IP
  4. squishi

    squishi Peon

    Messages:
    58
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    I can't find any missing quotes. And there are no missing semicolons, either.
    How do I locate the error?

    EDIT: Amazing.
    Some code that I had commented with "//" was causing this problem. One should think this code is not parsed!
     
    squishi, Feb 23, 2008 IP