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 Quote Link to comment 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 Quote Link to comment 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>"); ?> Quote Link to comment 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 Quote Link to comment 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;\” />"); ?> Quote Link to comment 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 Quote Link to comment 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.