Re: Descargador

From: Date: Mon, 11 Aug 2003 21:56:38 +0000
Subject: Re: Descargador
References: 1  Groups: php.general.es 
Request: Send a blank email to general-es+get-39258@lists.php.net to get a copy of this message
YO utilizo los siguientes headers header("Content-Type: ".$tipo); header("Content-Disposition: attachment; filename=".$nombre_fich); header("Content-Transfer-Encoding: binary"); y luego abro el fichero if (!$fp = fopen($nombre_fich,"rb")) exit(); else { # aqui le paso otro header con el tamaño header("Content-Length: ".filesize($nombre_fich)); print fread($fp,filesize($nombre_fich)); } y ya estaria... lo he probado con IE y Mozilla y en principio no me da problemas Un saludo Jabi jabi@irontec.com

« previous php.general.es (#39258) next »