Jump to content

video embedding help


s4salman

Recommended Posts

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]

Link to comment
https://forums.phpfreaks.com/topic/239797-video-embedding-help/
Share on other sites

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.