Ver Mensaje Individual
  #2 (permalink)  
Antiguo 26/03/2012, 15:00
Rasec101
 
Fecha de Ingreso: diciembre-2009
Ubicación: Santiago, Chile
Mensajes: 143
Antigüedad: 14 años, 4 meses
Puntos: 2
Respuesta: hacer que se descargue el archivo con href

echale un vistas a esto ojala te sirba http://www.forosdelweb.com/f18/desca...os-php-957314/
Código PHP:
Ver original
  1. <?php
  2. $rutafile = "RUTA_DE_TU_ARCHIVO";
  3. $nombre = $_GET['nombre_archivo'];
  4. $enlace = $rutafile."/".$nombre;
  5. header ("Content-Disposition: attachment; filename=".$nombre."\n\n");
  6. header ("Content-Type: application/octet-stream");
  7. header ("Content-Length: ".filesize($enlace));
  8. readfile($enlace);
  9.  
  10. ?>

Última edición por Rasec101; 26/03/2012 a las 15:06