Ver Mensaje Individual
  #8 (permalink)  
Antiguo 03/04/2008, 21:39
Avatar de GatorV
GatorV
$this->role('moderador');
 
Fecha de Ingreso: mayo-2006
Ubicación: /home/ams/
Mensajes: 38.567
Antigüedad: 18 años
Puntos: 2135
Re: Problemas para forzar descarga

El problema es que usando fpassthru pasa lo mismo que readfile. Prueba este código:
Código PHP:
ob_clean();
flush();
ob_flush();
$fp=fopen("$f""r");
while(!
feof($fp)) {
       echo 
fread$fp1024 );
}
fclose$fp );
//$contenido = fread($fp, filesize($f));
//fclose($fp);
//fpassthru($fp);
//readfile("$f");
exit(); 
Saludos.