i have search this php code by net and this not work in my site can any help and correct this
<?php
if($_SERVER['DOCUMENT_ROOT']=="/home/user/public_html"){
$flv=array(
'1' => 'video1.flv',
'2' => 'video2.flv',
'3' => 'video3.flv',
'4' => 'video4.flv',
'5' => 'video5.flv'
);
readfile ($flv[$_GET['tv']]);
}else{
header("Location: mysite.com/sorry.flv");
}
?>