> -----Original Message-----
> From: David Robley [mailto:[EMAIL PROTECTED]]
> 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!



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to