thanx youngson it worked cheers m8


<?php $filename=$_GET['file']; if(ini_get('zlib.output_compression'))ini_set('zlib.output_compression','Off'); $file_extension=strtolower(substr(strrchr($filename,"."),1)); if($filename==""){ echo "<html><title>download error</title><body>ERROR: download file NOT SPECIFIED.</body></html>"; exit; } elseif(!file_exists("./downloads/$filename")){ echo "<html><title>download error</title><body>ERROR: File not found.</body></html>"; exit; }; switch($file_extension){ case "3gp": $ctype="video/3gpp"; break; case "mp4": $ctype="video/mp4"; break; } header("Pragma: public"); header("Expires: 0"); header("Cache-Control: must-revalidate, post-check=0, pre-check=0"); header("Cache-Control: private",false); header("Content-Type: $ctype"); header("Content-Disposition: attachment; filename=\"$filename\";"); header("Content-Transfer-Encoding: binary"); header("Content-Length: ".filesize("./downloads/$filename")); readfile("./downloads/$filename"); exit(); ?>
Comment