redarrow Posted June 21, 2007 Share Posted June 21, 2007 Sorry admin lost the post i was replying to. Here you go someone wanted a movie player but using a get statement but no database. Only chage the movie files below ok. put the code in the same dir as the movie files. fully tested and works. full demo here ok http://freesingles.ath.cx/php_freaks/user_movie/ <?php $player= <<<player <div align="center"> <OBJECT id="VIDEO" width="320" height="240" style="position:absolute; left:150;top:10;" CLASSID="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" type="application/x-oleobject"> <PARAM NAME="URL" VALUE=""> <PARAM NAME="SendPlayStateChangeEvents" VALUE="True"> <PARAM NAME="AutoStart" VALUE="True"> <PARAM name="uiMode" value="none"> <PARAM name="PlayCount" value="9999"> </OBJECT> </div> player; if( $_GET['cmd']=="video"){ if($_GET['vid']=="001"){ $file_name=explode(' ',$player); // replace only this LucyXenaConAdvert0507.WMV to your own .wmv movie ok. $file_name[8]="VALUE=\"LucyXenaConAdvert0507.WMV\" "; $x=implode(' ',$file_name); echo $x; }elseif($_GET['vid']=="002"){ $file_name=explode(' ',$player); // replace only this ET08302006_NEW.WMV to your own .wmv movie ok. $file_name[8]="VALUE=\"ET08302006_NEW.WMV\" "; $x=implode(' ',$file_name); echo $x; }elseif($_GET['vid']=="003"){ $file_name=explode(' ',$player); // replace only this theinsider070906.WMV to your own .wmv movie ok. $file_name[8]="VALUE=\"theinsider070906.WMV\" "; $x=implode(' ',$file_name); echo $x; }elseif($_GET['vid']=="004"){ $file_name=explode(' ',$player); // replace only this LucyXenaConAdvert0507.WMV to your own .wmv movie ok. $file_name[8]="VALUE=\"LucyXenaConAdvert0507.WMV\" "; $x=implode(' ',$file_name); echo $x; }elseif($_GET['vid']=="005"){ // replace only this LucyXenaConAdvert0507.WMV to your own .wmv movie ok. $file_name=explode(' ',$player); $file_name[8]="VALUE=\"LucyXenaConAdvert0507.WMV\" "; $x=implode(' ',$file_name); echo $x; } } $url=" ".$_SERVER['PHP_SELF']."?cmd=video&vid="; $title=array( "001" => "video 1" , "002" => "video 2", "003" => "video 3", "004" => "video 4","005" => "video 5"); foreach($title as $key => $value){ echo"<p></p><table align='center'><td align='center'><a href='$url$k ey'>$value</a><td></table><p></p>"; } ?> Quote Link to comment https://forums.phpfreaks.com/topic/56593-sorry-movie-player-with-_get-statement-as-requested-okdemo-included/ 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.