Parse Error Syntax Error Unexpected T_sl
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings t_sl php and policies of this site About Us Learn more about Stack Overflow syntax error, unexpected t_sl heredoc the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags php eot 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
Parse Error: Syntax Error, Unexpected End Of File In
takes a minute: Sign up Parse error: syntax error, unexpected '<<' (T_SL) [closed] up vote 0 down vote favorite I have this code, but I'm getting Parse error: syntax error, unexpected '<<' (T_SL)
heredoc php
while($row = mysqli_fetch_array($result)) { echo "ID:
"; echo "Lastname:
"; echo "Codename:
"; echo "Location:
"; echo "Rank:
"; }
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 Nowdoc Parse error: syntax error, unexpected T_SL up vote 1 down vote favorite $default_post = <<<'DEFAULT_POST' http://stackoverflow.com/questions/20931450/parse-error-syntax-error-unexpected-t-sl
[embed width='640' height='480']%VideoUrl%[/embed]
%VideoDescription%
DEFAULT_POST; The first line is the one throwing the error. I have this code running on 100s of sites but I have one customer who reports this error. There is no whitespace after the nowdoc 'DEFAULT_POST'. Customer states he is running PHP 5.3.29 (nowdoc introduced in 5.3.0). So http://stackoverflow.com/questions/28942968/nowdoc-parse-error-syntax-error-unexpected-t-sl now I'm at a loss. Looking for other ideas on what this might be... php heredoc nowdoc share|improve this question asked Mar 9 '15 at 13:17 johnh10 1,567415 Your syntax is fine, I think that the problem is in the PHP version and that the customer is reporting the wrong one. –N.B. Mar 9 '15 at 13:27 I'll try to verify that without being a jerk. –johnh10 Mar 9 '15 at 16:12 I've uploaded a phpinfo file to his server and verified PHP 5.3.29 BUT I also noticed PHP API is 20090626. Does that mean this version of PHP was compiled with old libraries from June 2009, possibly before nowdoc was included? –johnh10 Mar 11 '15 at 18:43 add a comment| active oldest votes Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook. Your Answer draft saved draft discarded Sign up or log in Sign up using Google Sign up using Facebook Sign up using Email and Password Post as a guest Name Email Post as a guest Name Email discard By posting your answer, you agree to the privacy policy and terms of service. Browse other questions tagged php heredoc nowdoc or ask yourIf this is your first visit, be sure to check out http://board.phpbuilder.com/showthread.php?10333424-RESOLVED-Parse-error-syntax-error-unexpected-T_SL the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To http://www.mintjoomla.com/support/community-forum/user-item/2583-hwdevteam/48-cobalt-8/3232-parse-error-syntax-error-unexpected-t_sl-expecting-t_function-in-home-sitename-public_html-administrator-components-com_cobalt-controllers-records-php-on-line-34.h start viewing messages, select the forum that you want to visit from the selection below. Results 1 to 9 of 9 Thread: [RESOLVED] Parse syntax error error: syntax error, unexpected T_SL Tweet Thread Tools Show Printable Version Email this Page… Subscribe to this Thread… Search Thread Advanced Search Display Linear Mode Switch to Hybrid Mode Switch to Threaded Mode 12-12-2006,12:02 PM #1 vigar_neil View Profile View Forum Posts Junior Member Join Date syntax error, unexpected Nov 2006 Posts 12 [RESOLVED] Parse error: syntax error, unexpected T_SL Hi, I am trying to create an image gallery for my site. I am using the following code, but when I try to load the page I get the following error: Parse error: syntax error, unexpected T_SL in /home/users/uks53122/html/sportsmatesreunited.co.uk/photos/preupload.php on line 15 Can anybody tell me why I am getting this message and how I fix the problem? Any help would be very much appriciated. PHP Code: include'config.inc.php';
//initialization
$photo_upload_fields='';
$counter=1;
//Ifwewantmorefields,thenuse,preupload.php?number_of_fields=20
$number_of_fields=(isset($_GET['number_of_fields']))?
(int)(