Ver Mensaje Individual
  #14 (permalink)  
Antiguo 15/06/2006, 15:49
Avatar de mveraa
mveraa
 
Fecha de Ingreso: diciembre-2002
Ubicación: santiago-chilito
Mensajes: 1.931
Antigüedad: 21 años, 3 meses
Puntos: 2
encontre esta codigo que hace lo que busco y me funcion super bien.

<?PHP
$id = "llamado.doc";
$enlace = "../prueba_donwload/".$id;
header ("Content-Disposition: attachment; filename=".$id." ");
header ("Content-Type: application/octet-stream");
header ("Content-Length: ".filesize($enlace));
readfile($enlace);

?>


un saludo.
__________________
"Cuando se adelanta un oponente, enfréntalo y salúdalo; si intenta retroceder, déjalo seguir su camino"