s4salman Posted November 23, 2007 Share Posted November 23, 2007 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 More sharing options...
PHP_PhREEEk Posted November 23, 2007 Share Posted November 23, 2007 Inside the embed tag, escape all double quotes with \ PhREEEK Link to comment https://forums.phpfreaks.com/topic/78518-solved-flv-embedding-syntax-error/#findComment-397341 Share on other sites More sharing options...
~n[EO]n~ Posted November 23, 2007 Share Posted November 23, 2007 Paste this <?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>"); ?> Link to comment https://forums.phpfreaks.com/topic/78518-solved-flv-embedding-syntax-error/#findComment-397342 Share on other sites More sharing options...
s4salman Posted November 23, 2007 Author Share Posted November 23, 2007 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 Link to comment https://forums.phpfreaks.com/topic/78518-solved-flv-embedding-syntax-error/#findComment-397352 Share on other sites More sharing options...
~n[EO]n~ Posted November 23, 2007 Share Posted November 23, 2007 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;\” />"); ?> Link to comment https://forums.phpfreaks.com/topic/78518-solved-flv-embedding-syntax-error/#findComment-397354 Share on other sites More sharing options...
s4salman Posted November 23, 2007 Author Share Posted November 23, 2007 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 Link to comment https://forums.phpfreaks.com/topic/78518-solved-flv-embedding-syntax-error/#findComment-397404 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.