HEREDOC Issue

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ziycon
    Contributor
    • Sep 2008
    • 384

    HEREDOC Issue

    I have a site that has been using the HEREDOC syntax for awhile, after a recent upgrade to the site a lot of pages are erroring with the below error, i can't figure it out at ll, any ideas?
    All the pages are giving the same error on different lines but it seems to be related to the HEREDOC syntx?

    Parse error: syntax error, unexpected T_SL in /www/htdocs/.../index.html on line 372
  • ziycon
    Contributor
    • Sep 2008
    • 384

    #2
    Figured it out, I had an extra whitespace after the below HEREDOC syntax:

    Code:
    $temp = <<<EFF

    Comment

    • ak1dnar
      Recognized Expert Top Contributor
      • Jan 2007
      • 1584

      #3
      Thank you for posting the solution here

      Comment

      Working...