Re: DESCARGADOR
| From: | Pablo E. Siciliano | Date: | Fri, 15 Aug 2003 20:48:25 +0000 |
| Subject: | Re: DESCARGADOR | ||
| References: | 1 | Groups: | php.general.es |
| Request: | Send a blank email to general-es+get-39435@lists.php.net to get a copy of this message | ||
filezise no funciona para archivos remotos. Probá poner el xls en algún
lugar en tu servidor, o si no, probá tomar tu archivo concatenandolo en una
variable con fgets, y usá strlen().
----- Original Message -----
From: "cesar nuñez" <cesar_nk@hotmail.com>
To: <lista@phpes.com>
Sent: Friday, August 15, 2003 5:13 PM
Subject: Re: [PHP-ES] DESCARGADOR
> Saludos ...
>
> Por favor hasta ahora no puedo solucionar este problema....
> descarga el archivo excel y lo guarda pero a la hora de abrirlo sigue
> apareciendo basura ..parece que estuviera arrastrando la estructura del
> excel ....que puedo hacer
>
> <?
> if (@file_exists ("/aa/ejemplo.xls") )
> {
> header ("Content-Type:application/vnd.ms-excel");
> header ("Content-Length:
> ".filesize("http://localhost/ejemplo.xls"));
> header("Content-Disposition: attachment;
> filename=".basename("ejemplo.xls"));
> @readfile("http://localhost/ejemplo.xls");
>
> }
> ?>
>
> Muchas 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
> >
>
> _________________________________________________________________
> Consigue aquí las mejores y mas recientes ofertas de trabajo en América
> Latina y USA: www.yupimsn.com/empleos
>
>
> ---------------------------------------------------------------------
> 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
>
>
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.507 / Virus Database: 304 - Release Date: 04/08/03