Jump to content

[SOLVED] flv embedding syntax error


s4salman

Recommended Posts

i am using this code :

 

<?php echo "<embed src='http://fun007.com/FLVScrubber.swf' quality="high" bgcolor="#000000" width="450" height="253" name="FLVScrubber" align="middle" play="true" loop="false" quality="high" allowScriptAccess="sameDomain" allowFullScreen="true" flashvars="file=http://www.fun007.com/funnyvideos/flv/$flv& previewImage=http://fun007.com/funnyvideos/images/$picture" type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/go/getflashplayer"></embed>";
?>

 

but i am getting this error :

 

Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /home/wallpape/public_html/funny-videos-details.php on line 216

 

 

Please help

Link to comment
https://forums.phpfreaks.com/topic/78518-solved-flv-embedding-syntax-error/
Share on other sites

Paste this  :P

<?php
echo ("<embed src='http://fun007.com/FLVScrubber.swf' quality=\"high\" bgcolor=\"#000000\" width=\"450\" height=\"253\" name=\"FLVScrubber\" align=\"middle\" play=\"true\" loop=\"false\" quality=\"high\" allowScriptAccess=\"sameDomain\" allowFullScreen=\"true\" flashvars=\"file=http://www.fun007.com/funnyvideos/flv/$flv& previewImage=http://fun007.com/funnyvideos/images/$picture\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.adobe.com/go/getflashplayer\"></embed>");
?>

This new flv player code have unusual ”" 

how can embed this (i found a new flv player as it has more feature than above flv player) :

 

<embed flashvars=”" src=”http://www.fun007/FLVScrubber2.swf?file=http://www.fun007.com/funnyvideos/$flv&bufferTime=3&previewImage=http://www.fun007.com/funnyvideos/images/$picture&startAt=0&autoStart=false” allowfullscreen=”true” type=”application/x-shockwave-flash” id=”FLVScrubber2″ style=”width: 323px; height: 283px;” />

 

 

Please help

Are you trying to embed others flash file in your page or ?

<?php
echo ("<embed flashvars=\”\" src=\”http://www.fun007/FLVScrubber2.swf?file=http://www.fun007.com/funnyvideos/{$flv}&bufferTime=3&previewImage=http://www.fun007.com/funnyvideos/images/{$picture}&startAt=0&autoStart=false\” allowfullscreen=\”true\” type=\”application/x-shockwave-flash\” id=\”FLVScrubber2\″ style=\”width: 323px; height: 283px;\” />");
?>

i used this code and it works nice.

 

echo ("<embed src='http://fun007.com/FLVScrubber2.swf' quality=\"high\" bgcolor=\"#000000\" width=\"450\" height=\"253\" name=\"FLVScrubber\" align=\"middle\" play=\"true\" loop=\"false\" quality=\"high\" allowScriptAccess=\"sameDomain\" allowFullScreen=\"true\" flashvars=\"file=http://www.fun007.com/funnyvideos/flv/$flv& previewImage=http://fun007.com/funnyvideos/images/$picture\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.adobe.com/go/getflashplayer\"></embed>");

 

Just change the flv player name in the code given by ~n[EO]n~

 

Thanks

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.