Jump to content

Recommended Posts

I'm trying to make my flash page load a video according to the db information, but I keep getting an "unexpected t_string" error, any idea where I went wrong?

 

if(isset($_GET['videoid'])){
echo '<div class="videohires">
            <div align="center">
              <script type="text/javascript">'.str_replace(".flv","",$row_rs_multi_vid['filename']).' AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0','width',''.$row_rs_multi_vid['res_x'].'','height',''.$row_rs_multi_vid['res_y'].'','id','FLVPlayer','src','FLVPlayer_Progressive','flashvars','&MM_ComponentVersion=1&skinName=Clear_Skin_1&streamName=videos/'.str_replace(".flv","",$row_rs_multi_vid['filename']).'&autoPlay=true&autoRewind=true','quality','high','scale','noscale','name','FLVPlayer','salign','lt','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','FLVPlayer_Progressive' ); //end AC code // [b]this is where it dies.[/b]
          </script>
              <noscript>
              <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="'.$row_rs_multi_vid['res_x'].'" height="'.$row_rs_multi_vid['res_y'].'" id="FLVPlayer">
                <param name="movie" value="FLVPlayer_Progressive.swf" />
                <param name="salign" value="lt" />
                <param name="quality" value="high" />
                <param name="scale" value="noscale" />
                <param name="FlashVars" value="&MM_ComponentVersion=1&skinName=Clear_Skin_1&streamName=videos/'.str_replace(".flv","",$row_rs_multi_vid['filename']).'&autoPlay=true&autoRewind=true" />
                <embed src="FLVPlayer_Progressive.swf" flashvars="&MM_ComponentVersion=1&skinName=Clear_Skin_1&streamName=videos/'.str_replace(".flv","",$row_rs_multi_vid['filename']).'&autoPlay=true&autoRewind=true" quality="high" scale="noscale" width="'.$row_rs_multi_vid['res_x'].'" height="'.$row_rs_multi_vid['res_y'].'" name="FLVPlayer" salign="LT" type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" /></embed>
              </object>
              </noscript>
              <br />
              <br />
            </div>
          </div>';
          }
else

Link to comment
https://forums.phpfreaks.com/topic/149685-dynamic-flash-video-with-php/
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.