Ver Mensaje Individual
  #3 (permalink)  
Antiguo 12/11/2011, 12:33
gato06
 
Fecha de Ingreso: noviembre-2011
Mensajes: 6
Antigüedad: 12 años, 5 meses
Puntos: 2
Respuesta: Error al descargar un archivo

Este es el codigo que uso man ayuda no doy noc q mas hacer

$enlace = $rutafinal."/".$nombre;
header ("Content-Disposition: attachment; filename=".$nombre."\n\n");
header ("Content-Type: application/octet-stream");
header ("Content-Length: ".filesize($enlace));
readfile($enlace);