Parse Error Syntax Error Unexpected T_sl In Heredoc
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you parse error syntax error unexpected t_sl php might have Meta Discuss the workings and policies of this site
Syntax Error, Unexpected T_sl Heredoc
About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting
Php Heredoc Syntax Error
ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 6.2
Heredoc Php
million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Parse error: syntax error, unexpected T_SL PHP heredoc up vote 2 down vote favorite I keep getting the following error: Parse error: syntax error, unexpected T_SL in /home/a4999406/public_html/willingLog.html on line 70 on the following code (first line is line 70): echo << First Last Email Username
END; heredoc just doesn't seem to work. i've tried other examples. following is by doctype heading. is there something wrong there? php heredoc share|improve this question edited Jun 26 '12 at 14:02 asked Jun 26 '12 at 13:45 dwstein 1,59983766 Are there any funky invisible characters in there, or any syntax problems before that? –deceze Jun 26 '12 at 13:49 no invisible characters. no syntax issue above that I'm aware of. –dwstein Jun 26 '12 at 13:51 What version of PHP is this? –deceze Jun 26 '12 at 13:52 T_SL stands for the << bitwise operator... weird. –deceze Jun 26 '12 at 13:54 Not too weird; one common re
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 6.2 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Parse error: syntax error, unexpected '<<'(T_SL) on line 2 using php heredoc syntax up vote -1 down vote favorite When I run this code on my editor, it returns an error. My php version is 5.4.35 Code: http://stackoverflow.com/questions/11208725/parse-error-syntax-error-unexpected-t-sl-php-heredoc is amit SQL; echo $name; ?> Error: Parse error: syntax error, unexpected '<<'(T_SL) on line 2 Can someone please explain why this error, or what my script is missing? Thanks. php share|improve this question edited Oct 3 at 14:26 marc_s 454k938711033 asked Feb 20 '15 at 20:04 student 398 What is << here for a quick overview of the site Help Center Detailed answers to any questions you might http://stackoverflow.com/questions/5416437/syntax-error-unexpected-t-sl have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 6.2 million syntax error programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Syntax error, unexpected T_SL up vote 7 down vote favorite 1 I'm fairly new to php and I'm using a script that creates a function called the "mime_mailer" which essentially allows me to use PHP to send emails that are parse error syntax able to be designed with CSS instead of being merely plain text. Yet, in my registration script, I try to write some code that sends a CSS email, but I get an error saying that there's a syntax error. Could someone please fill me in on this? $subject = "Your Red-line Account"; $css = "body{ color: #090127; background-color: #f0f0f0; }"; $to = $usercheck; //Message $message =<< Hi $first_name, Your Red-line account is almost complete. To finish, go to The Red-line and enter your eight digit confirmation code. Your confirmation code is: $code Sincerely, The Red-line Operator