Results 1 to 8 of 8

Thread: unexpected error

  1. #1

    Thread Starter
    Lively Member DJ P@CkMaN's Avatar
    Join Date
    Jan 2002
    Location
    Burpengary, Queensland, Australia
    Posts
    95

    unexpected error

    hey all,

    i keep getting this error on my index.php file
    Parse error: parse error, unexpected $ in c:\www\root\index.php on line 341
    but line 341 is the last line of the file and it is this

    PHP Code:
    </html
    anybody have and ideas on what to do?? i havent posted the code because of the nature of the error i have no idea what section to post and i didnt want to post the whole file but if you need my to i will.

    thanks for the help

    Edit: here is the link to the file as a txt file
    http://www.lexicon.net/hardcore/index.txt
    Last edited by DJ P@CkMaN; Aug 6th, 2002 at 04:52 AM.
    There's something I've noticed in the last year or so...
    Australian's are good at EVERYTHING !!!

  2. #2
    Fanatic Member Gimlin's Avatar
    Join Date
    Dec 2001
    Location
    Hell
    Posts
    734
    post a couple lines around that one. when PHP gives you an error, the line it gives you isnt, always the line that has the error, most of the time its just where the script stopped, because of error.

  3. #3

    Thread Starter
    Lively Member DJ P@CkMaN's Avatar
    Join Date
    Jan 2002
    Location
    Burpengary, Queensland, Australia
    Posts
    95
    i uploaded the whole file to my webspace

    http://www.lexicon.net/hardcore/index.txt
    There's something I've noticed in the last year or so...
    Australian's are good at EVERYTHING !!!

  4. #4

    Thread Starter
    Lively Member DJ P@CkMaN's Avatar
    Join Date
    Jan 2002
    Location
    Burpengary, Queensland, Australia
    Posts
    95
    this is the last line of PHP code

    PHP Code:
    <?= $display_text?>
    There's something I've noticed in the last year or so...
    Australian's are good at EVERYTHING !!!

  5. #5
    Fanatic Member Gimlin's Avatar
    Join Date
    Dec 2001
    Location
    Hell
    Posts
    734
    After some looking I think I found the problem
    Attached Files Attached Files

  6. #6

    Thread Starter
    Lively Member DJ P@CkMaN's Avatar
    Join Date
    Jan 2002
    Location
    Burpengary, Queensland, Australia
    Posts
    95
    thanx heaps, works great, but could you please tell me how you fixed it so i know how NOT to do it infuture

    thanx
    There's something I've noticed in the last year or so...
    Australian's are good at EVERYTHING !!!

  7. #7
    Fanatic Member Gimlin's Avatar
    Join Date
    Dec 2001
    Location
    Hell
    Posts
    734
    you forgot to close an if statement.

  8. #8

    Thread Starter
    Lively Member DJ P@CkMaN's Avatar
    Join Date
    Jan 2002
    Location
    Burpengary, Queensland, Australia
    Posts
    95
    wow.. i feel dumb

    thanx for that
    There's something I've noticed in the last year or so...
    Australian's are good at EVERYTHING !!!

Posting Permissions

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



Click Here to Expand Forum to Full Width