kyleldi Posted March 16, 2009 Share Posted March 16, 2009 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 More sharing options...
aebstract Posted March 16, 2009 Share Posted March 16, 2009 I'd say it would be all those 's you have inside your echo ''; Link to comment https://forums.phpfreaks.com/topic/149685-dynamic-flash-video-with-php/#findComment-786013 Share on other sites More sharing options...
Maq Posted March 16, 2009 Share Posted March 16, 2009 It is, how do I know this? I use an editor with a syntax highlighter, I suggest you get one so you can easily spot where your string is getting messed up. Link to comment https://forums.phpfreaks.com/topic/149685-dynamic-flash-video-with-php/#findComment-786029 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.