Jump to content

Sorry movie player with $_GEt statement as requested ok.(demo included)


Recommended Posts

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>";
}

?>

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.