s4salman Posted June 19, 2011 Share Posted June 19, 2011 Hi i am getting sysntax error with the following code : <?php echo "<embed flashvars="" src="http://www.salmobile.info/scrubber.swf?file=http://www.salmobile.info/sab/1/$player&bufferTime=3&previewImage=http://salmobile.info/sab/img1/$image&startAt=0&autoStart=false" allowfullscreen="true" type="application/x-shockwave-flash" id="FLVScrubber2" style="width: 323px; height: 283px;" />"; ?> i am attaching the whole file. The error i am getting is Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ',' or ';' in /home/dracra/public_html/3gp-videos-download2.php on line 237 plz help [attachment deleted by admin] Quote Link to comment https://forums.phpfreaks.com/topic/239797-video-embedding-help/ Share on other sites More sharing options...
mikesta707 Posted June 19, 2011 Share Posted June 19, 2011 You have a syntax error. You are trying to use double quotes inside a double quotes string echo '<embed flashvars="" src="http://www.salmobile.info/scrubber.swf?file=http://www.salmobile.info/sab/1/'.$player.'&bufferTime=3&previewImage=http://salmobile.info/sab/img1/'.$image.'&startAt=0&autoStart=false" allowfullscreen="true" type="application/x-shockwave-flash" id="FLVScrubber2" style="width: 323px; height: 283px;" />'; EDIT: didnt notice you have variables. Gotta concatenate Quote Link to comment https://forums.phpfreaks.com/topic/239797-video-embedding-help/#findComment-1231792 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.