Ver Mensaje Individual
  #2 (permalink)  
Antiguo 27/06/2006, 21:39
Fridureiks
 
Fecha de Ingreso: julio-2005
Ubicación: Buenos Aires, Argentina
Mensajes: 1.304
Antigüedad: 18 años, 9 meses
Puntos: 6
Hola, casualmente encontre este codigo hoy porque lo necesitaba y me ha funcionado bien con todo tipo de archivos :S

Código PHP:
<?php
$enlace 
"./../".$_GET["carpeta"]."/".$_GET["nombre"];
header ("Content-Disposition: attachment; filename=".$_GET["nombre"]."\n\n");
header ("Content-Type: application/octet-stream");
header ("Content-Length: ".filesize($enlace));
readfile($enlace);
?>
Suerte!
__________________
Federico.

Mi página: www.jourmoly.com.ar