Ver Mensaje Individual
  #4 (permalink)  
Antiguo 28/02/2007, 13:07
Avatar de deet
deet
 
Fecha de Ingreso: mayo-2005
Ubicación: Córdoba - Argentina
Mensajes: 269
Antigüedad: 19 años
Puntos: 1
Re: Problemas con header()

hola oso96_2000,
yo utilizo estas cabeceras para forzar la descarga de archivos

$path='directorio/a/tu/archivo/';
header("Pragma: no-cache");
header("Expires: 0");
header("Content-Transfer-Encoding: binary");
header("Content-type: application/force-download");
header("Content-Disposition: attachment; filename=$file");
readfile($path."$file");

espero que te sirvan.