Ver Mensaje Individual
  #3 (permalink)  
Antiguo 02/07/2013, 10:16
Bernoo
 
Fecha de Ingreso: noviembre-2008
Mensajes: 100
Antigüedad: 15 años, 5 meses
Puntos: 4
Respuesta: Forzar la descarga de una imagen

Con headers:

Código:
<?php
$file = $_GET['file'];
header("Content-disposition: attachment; filename=$file");
header("Content-type: application/octet-stream");
readfile($file);
?>

Hace tiempo tuve un problemilla, pero ahi esta todo solucionado

http://www.forosdelweb.com/f18/probl...hivos-1048208/

Última edición por Bernoo; 02/07/2013 a las 10:22