RE: [PHP] Re: Downloading Data from Database
| From: | Jochen Kaechelin | Date: | Fri, 13 Jul 2001 02:33:26 +0000 |
| Subject: | RE: [PHP] Re: Downloading Data from Database | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-57672@lists.php.net to get a copy of this message | ||
> -----Original Message-----
> From: David Robley [mailto:huntsman@www.nisu.flinders.edu.au]
> Sent: Friday, July 13, 2001 2:48 AM
> To: Randy Johnson; PHP General List
> Subject: Re: [PHP] Re: Downloading Data from Database
>
>
> On Sun, 15 Jul 2001 01:15, Randy Johnson wrote:
> > Dave,
> >
> > The code below gives me an error in IE 5.+
> >
> > Here is the error:
> >
> > IE cannot download ......blah blah try again later
> >
> > Do you use this code on your site or do i just need to tweak it
> >
> > -----Original Message-----
> > header("Content-disposition: filename=maillist.dat");
> > header("Content-type: application/octetstream");
> > header("Pragma: no-cache");
> > header("Expires: 0");
> > //query database
> > //echo results required
> > //end
>
>
> We use it, but only internally and our preferred browser is
> not from M$
> :-) I do have an IE5.5 somewhere, so I'll have a look and see what
> happens with my script using it.
>
What about this version:
header("Content-Type: application/octet-stream");
header("Content-Disposition: inline; filename=\"".$filename."\"");
readfile($filename);
I have no problems with it at all!