Re: DESCARGADOR

From: Date: Thu, 14 Aug 2003 15:18:52 +0000
Subject: Re: DESCARGADOR
References: 1  Groups: php.general.es 
Request: Send a blank email to general-es+get-39398@lists.php.net to get a copy of this message
omiti lo siguiente el siguente pedazo de codigo me funciiona virtualmente con cualqueir tipo de archivo xls, doc, etc if (@file_exists ($url) ) { header ("Content-Disposition: attachment; filename=".$file."\n\n"); header ("Content-Type: application/octet-stream"); header ("Content-Length: ".filesize($url)); @readfile($url); } ----- Original Message ----- From: "cesar nuñez" <cesar_nk@hotmail.com> To: <lista@phpes.com> Sent: Wednesday, August 13, 2003 7:25 PM Subject: [PHP-ES] DESCARGADOR > Saludos a todos ..... > > Por favor tengo el sgte. código que me descarga y guarda pero me jala pura > basura cuando abro el archivo guardado ....... a que se debe esto????? > > <? > header("Content-type: application/xls"); > header("Content-Disposition: attachment; filename=ejemplo.xls"); > readfile('/aa/ejemplo.xls'); > ?> > > Muchas Gracias > > _________________________________________________________________ > ¿Estás buscando un auto nuevo? http://www.yupimsn.com/autos/ > > > --------------------------------------------------------------------- > Archivo On-line: http://www.phpes.com/ > via news: news://news.phpes.com/ > Manual PHP en español: http://www.php.net/manual/es/ > Para dar de baja la suscripción, mande un mensaje a: > lista-unsubscribe@phpes.com > > >

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