Re: DESCARGADOR

From: Date: Thu, 14 Aug 2003 18:38:01 +0000
Subject: Re: DESCARGADOR
Groups: php.general.es 
Request: Send a blank email to general-es+get-39404@lists.php.net to get a copy of this message
Saludos Walter ........ Este es el código pero sigue el problema de la basurita a la hora de abrir el archivo guardado.... if (@file_exists ("/aa/ejemplo.xls") ) {
       header ("Content-Disposition: attachment;filename=ejemplo.xls");
       header ("Content-Type:application/ms-excel");
       header ("Content-Length: ".filesize("/aa/ejemplo.xls"));
       @readfile("/aa/ejemplo.xls");
} Gracias
From: "Walter D. Funk" <walter@netcomproject.com> Reply-To: lista@phpes.com To: <lista@phpes.com> Subject: Re: [PHP-ES] DESCARGADOR Date: Thu, 14 Aug 2003 12:18:52 -0300 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 --------------------------------------------------------------------- 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
_________________________________________________________________ ¿Estás buscando un auto nuevo? http://www.yupimsn.com/autos/

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