Ver Mensaje Individual
  #3 (permalink)  
Antiguo 05/11/2011, 12:46
quiquebg
 
Fecha de Ingreso: junio-2009
Mensajes: 80
Antigüedad: 14 años, 10 meses
Puntos: 2
Respuesta: Denegar acceso a un archivo.

muchas gracias!!

Use este codigo:

$f = $_GET["f"];
header("Content-type: application/octet-stream");
header("Content-Disposition: attachment; filename=\"$f\"\n");
$fp=fopen("$f", "r");
fpassthru($fp);

y con readfile tambien me funciono jeje