randvideo.php isminde dosyanı oluştur sunucuna koy
<?php
$file[1] = "birinci.flv";
$file[2] = "ikinci.flv";
$file[3] = "ucuncu.flv";
$file[4] = "dorduncu.flv";
$file[5] = "besinci.flv";
$Filename = $file[array_rand($file)];
header("Pragma: public");
header("Expires: 0");
header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
header("Content-type: video/flv");
header("Content-Disposition: attachment; filename=".basename($filename).";" );
header("Content-Transfer-Encoding: binary");
readfile("$Filename ");
?>
htaccess şu şekilde editle
RewriteRule videolar/(.*).flv$
randvideo.php [NC]
Örnekler :
http://stackoverflow.com/questions/1...working-in-php