T_ENCAPSED_AND_WHITESPACE error

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • DavidPr
    New Member
    • Mar 2007
    • 155

    T_ENCAPSED_AND_WHITESPACE error

    I am receiving this error message and the line it is referring to is below.

    Parse error: parse error, unexpected T_ENCAPSED_AND_ WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING

    [PHP]if (isset($_SESSIO N['user_id']) AND (substr($_SERVE R['PHP_SELF'], -10) != 'logout.php')) {[/PHP]

    I know that sometimes an error may come to rest on a particular line but the infraction could be somewhere above it. Could this be the case here?
  • shoonya
    New Member
    • May 2007
    • 160

    #2
    try this

    [PHP]if(isset($var_n ame)==1 &&.......)[/PHP]

    shoonya

    Comment

    • DavidPr
      New Member
      • Mar 2007
      • 155

      #3
      It's working now, thanks.

      Comment

      Working...