I was using an offline copy of the PHP manual without the discussion
included on the online page pointed to by the link in John's response. The
discussion on the online page provided the information I needed to
understand the full extent of the caching issue. The application is now
working correctly.

Andy

-----Original Message-----
From: John W. Holmes [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 31, 2004 10:55 AM
To: Andrew Hauger; [EMAIL PROTECTED]
Subject: Re: [PHP] File Download link not working in PHP 4.3.4


Check the comments on this page:

http://us2.php.net/manual/en/function.session-cache-limiter.php

---John Holmes...

----- Original Message -----
From: "Andrew Hauger" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, March 31, 2004 11:18 AM
Subject: Re: [PHP] File Download link not working in PHP 4.3.4


> Curt,
>
> Thanks for the suggestions. Unfortunately, no luck
> yet. Here's the current version of the affected lines
> of code:
>
> $file_type = "vnd.ms-excel";
> $file_ending = "xls";
> header ( "Content-Type: application/$file_type" );
> header ( 'Content-Disposition: attachment;
> filename="product.'.$file_ending.'"' );
> header ( 'Expires: ' . date ( 'r', 0 ));
>
> Still getting the same behavior, on both the Windows
> and Solaris platforms.
>
> Andy
>
> > From: Curt Zirzow [EMAIL PROTECTED]
> > Sent: Tuesday, March 30, 2004 9:56 PM
> > To: [EMAIL PROTECTED]
> > Subject: Re: [PHP] File Download link not working in
> PHP 4.3.4
> >
> > * Thus wrote Andrew Hauger ([EMAIL PROTECTED]):
> > > the file name. When the "OK" button is clicked, an
> > > error dialog pops up with the message "Internet
> > > Explorer cannot download ... [snipped URL].
> Internet
> > > Explorer was not able to open this Internet site.
> The
> > > requested site is either unavailable or cannot be
> > > found. Please try again later."
> >
> > This can mean a lot of things, IE tends to be too
> friendly
> > sometimes.
> >
> >
> > >
> > > Here are the header commands:
> > >
> > > $file_type = "vnd.ms-excel";
> > > $file_ending = "xls";
> > > header ( "Content-Type: application/$file_type" );
> > > header ( "Content-Disposition: attachment;
> > > filename=product.".$file_ending );
> >
> > Quote the filename, although it most likley wont be
> the problem.
> >
> >    Conent-Type: attachment; filename="product.xls"
> >
> >
> > > header ( "Expires: 0" );
> >
> > I might wage this is the problem, it needs to be a
> valid HTTP date,
> > something like this will do the job:
> >
> >   header('Expires: ' . date('r', 0);
> >
> >
> > Curt
> > --
> > "I used to think I was indecisive, but now I'm not
> so sure."
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> > ---
> > Incoming mail is certified Virus Free.
> > Checked by AVG anti-virus system
> (http://www.grisoft.com).
> > Version: 6.0.624 / Virus Database: 401 - Release
> Date: 3/15/2004
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.624 / Virus Database: 401 - Release Date: 3/15/2004

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.624 / Virus Database: 401 - Release Date: 3/15/2004

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to