<?php include 'config.php'; $id = intval($_GET['id']); $sql = mysql_query("select * from artist where id='$id'"); while($oop = mysql_fetch_array($sql)) { $link = $oop['lien']; $mo = str_replace("/","-",$link); $content_len=@filesize($link); Header("Content-type: application/zip"); Header("Content-type: octet-stream"); Header("Content-Disposition: attachment; filename=$oop[lien]"); if($content_len!=FALSE) { Header("Content-length: $content_len"); } readfile($mo); } ?>
$mo = str_replace("/","-",$link);
readfile($link);