Ver Mensaje Individual
  #8 (permalink)  
Antiguo 16/08/2004, 10:15
Dahn
 
Fecha de Ingreso: junio-2004
Ubicación: Demasiado lejos
Mensajes: 52
Antigüedad: 19 años, 9 meses
Puntos: 0
Al final lo he hecho utilizando este código:


Código PHP:
<?php
$file
="archivo.php";
header("Content-type: application/octet-stream\n");
header("Content-Disposition: attachment; filename=\"$file\"\n");
header("Content-transfer-encoding: binary\n");    
header("Content-length: " filesize("$file") . "\n");
$fp=fopen("$destino/$file""r");
fpassthru($fp);
?>
Gracias a todos por la ayuda
__________________
I'll be here..., Why...?, I'll be 'waiting'...here..., For what?, I'll be waiting...for you...so..., If you come here..., You'll find me, I promise.