Intenta con esto:
Código PHP:
<?
ob_start();
$carpeta="/files/";
if (file_exists($carpeta.basename($_GET['file'])))
{
$file=$carpeta.$_GET["file"];
header("Content-Transfer-Encoding: binary");
header("Content-type: application/force-download");
header("Content-Disposition: attachment; filename=".basename($file));
header("Content-Length: ".filesize($file));
readfile($file);
}
else
{
echo "El archivo solicitado no existe.";
}
ob_end_flush();
?>
Recuerdo mas de 20 posts referentes al mismo problema en el foro. Intenta usar el buscador anotando el error