Results 1 to 3 of 3

Thread: Parse error

  1. #1
    Join Date
    Sep 2006
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Parse error

    Good Day, I need some help, please teach me why I'm getting this message:
    Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in .../tzn_user.php on line 109
    PHP Code:
    $str = <<<EOS
    <script type="text/javascript" language="javascript">
      var tzo=(new Date().getTimezoneOffset()*60)*(-1);
      document.write('<input type="hidden" name="
    $name" value="'+tzo+'" />');
    </script>
    EOS;
            print 
    $str;
        } 
    Line 109 is the line with EOS;

    Could anyone tell me what the error is?
    Last edited by thewebmacster; 01-05-2007 at 03:07 AM.

  2. #2
    Join Date
    Sep 2006
    Location
    St. George, UT
    Posts
    2,769
    Thanks
    3
    Thanked 157 Times in 155 Posts

    Default

    What's the rest of the code, because it could be anything leading up to that line that is causing the error.
    "Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian Wilson, Nintendo, Inc, 1989
    TheUnlimitedHost | The Testing Site | Southern Utah Web Hosting and Design

  3. #3
    Join Date
    Sep 2006
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Rest of code

    Thank you, I figured it out. You may delete this entry.
    Last edited by thewebmacster; 01-06-2007 at 04:44 AM.

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
  •