Ver Mensaje Individual
  #2 (permalink)  
Antiguo 31/07/2008, 12:47
Avatar de mapper
mapper
 
Fecha de Ingreso: enero-2003
Ubicación: Argentina
Mensajes: 321
Antigüedad: 21 años, 3 meses
Puntos: 1
Respuesta: Problema con header

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
__________________
-- May The Force Be With You --