Give me file download time script and code
Started on the old forum in November 2011 · view the original in the archive · old links redirect here
hmm Ok In Page Where File name Will Be Listed Add Dis
$name = $filenamestring;
//Lets Encode it
$c=base64_encode($name);
$hit = @file_get_contents("d/$c.log");
if(empty($hit))
{
$hit = 0;
}
and use it To Show How Many time It has been Downloaded
echo $hit;
and Put Dis
$file=$_GET['file'];
$name = basename($file);
@$cf = base64_encode($file);
$ck = @file_get_contents("d/$cf.log");
if(!empty($ck)){
if(!preg_match("/[0-9]/i",$ck)) exit("Hehe");
}
if(empty($ck)) $ck = 0;
if($fp=@fopen("d/$cf.log","w+")){
@fputs($fp,$ck+1);
@fclose($fp);
}
In Requested Page Where Will be Header demo