Re: [PHP] IE can't download, FF can: SSL ? Need special headers?

2009-05-28 Thread Michael A. Peters
Dee Ayy wrote: Andrea and Ashley, Thanks ladies. Originally, IE claimed that the server wasn't even there (with that wacky IE error). I was lacking headers (which was fine for 6 years prior). The code below is consistent across the 3 browsers I tried (Safari, FF, IE). However, it converts

RE: [PHP] IE can't download, FF can: SSL ? Need special headers?

2009-05-26 Thread Ford, Mike
On 22 May 2009 20:41, Dee Ayy advised: That's what I had in my first post. What are the rest of your headers? This is what is now deployed and I consider this issue resolved, but allowing spaces in the filename across IE, FF, and Safari browsers would be the real solution. Haven't tried

Re: [PHP] IE can't download, FF can: SSL ? Need special headers?

2009-05-26 Thread Dee Ayy
Ashley, Don't scare me like that. I know I'm losing my eye sight, but a copy-paste-diff shows your header(Content-Disposition: attachment; filename=\$filename\); differs from my original post's header(Content-Disposition: attachment; filename=\$name\); by only the text file. This method (with

Re: [PHP] IE can't download, FF can: SSL ? Need special headers?

2009-05-26 Thread Ashley Sheridan
On Tue, 2009-05-26 at 10:09 -0500, Dee Ayy wrote: Ashley, Don't scare me like that. I know I'm losing my eye sight, but a copy-paste-diff shows your header(Content-Disposition: attachment; filename=\$filename\); differs from my original post's header(Content-Disposition: attachment;

[PHP] IE can't download, FF can: SSL ? Need special headers?

2009-05-22 Thread Dee Ayy
The following code has been working for about 6 years. The only change I am aware of is that now it is being served from a server requiring SSL to access it. header(Content-type: $type); header(Content-length: $size); header(Content-Disposition: attachment; filename=\$name\); echo $data; It

RE: [PHP] IE can't download, FF can: SSL ? Need special headers?

2009-05-22 Thread kyle.smith
can't download, FF can: SSL ? Need special headers? The following code has been working for about 6 years. The only change I am aware of is that now it is being served from a server requiring SSL to access it. header(Content-type: $type); header(Content-length: $size); header(Content-Disposition

Re: [PHP] IE can't download, FF can: SSL ? Need special headers?

2009-05-22 Thread Bastien Koert
] Sent: Friday, May 22, 2009 11:05 AM To: php-general@lists.php.net Subject: [PHP] IE can't download, FF can: SSL ? Need special headers? The following code has been working for about 6 years. The only change I am aware of is that now it is being served from a server requiring SSL to access

Re: [PHP] IE can't download, FF can: SSL ? Need special headers?

2009-05-22 Thread Dee Ayy
Kyle, Well I guess that is good news. But I don't trust these headers since the filename is not being set. But that was even before this IE issue. Bastien, I don't understand how I could save the file to the hard disk from IE. But yes, I save the file (it gets saved as my_php_file.php on the

Re: [PHP] IE can't download, FF can: SSL ? Need special headers?

2009-05-22 Thread Andrew Ballard
On Fri, May 22, 2009 at 11:04 AM, Dee Ayy dee@gmail.com wrote: The following code has been working for about 6 years.  The only change I am aware of is that now it is being served from a server requiring SSL to access it. header(Content-type: $type); header(Content-length: $size);

Re: [PHP] IE can't download, FF can: SSL ? Need special headers?

2009-05-22 Thread Bastien Koert
On Fri, May 22, 2009 at 11:21 AM, Dee Ayy dee@gmail.com wrote: Kyle, Well I guess that is good news. But I don't trust these headers since the filename is not being set. But that was even before this IE issue. Bastien, I don't understand how I could save the file to the hard disk

Re: [PHP] IE can't download, FF can: SSL ? Need special headers?

2009-05-22 Thread Dee Ayy
I went with this, modified from http://php.he.net/readfile docs example 1: header('Content-Description: File Transfer'); header('Content-Type: '.$type); header('Content-Disposition: attachment; filename='.basename($name)); header('Content-Transfer-Encoding: binary'); header('Expires: 0');

Re: [PHP] IE can't download, FF can: SSL ? Need special headers?

2009-05-22 Thread Dee Ayy
Acceptable results, but could be better. basename works correctly for only Safari (filenames with spaces are correct). FF truncates the name starting with the first space. IE puts an underscore in place of a space. urlencode puts a plus sign in place of a space for all 3 browsers. But I've

Re: [PHP] IE can't download, FF can: SSL ? Need special headers?

2009-05-22 Thread Bastien Koert
On Fri, May 22, 2009 at 1:36 PM, Dee Ayy dee@gmail.com wrote: Acceptable results, but could be better. basename works correctly for only Safari (filenames with spaces are correct). FF truncates the name starting with the first space. IE puts an underscore in place of a space.

Re: [PHP] IE can't download, FF can: SSL ? Need special headers?

2009-05-22 Thread Eddie Drapkin
or even just str_replace(' ' , '_', $name) consistent and works, no? On Fri, May 22, 2009 at 2:21 PM, Bastien Koert phps...@gmail.com wrote: On Fri, May 22, 2009 at 1:36 PM, Dee Ayy dee@gmail.com wrote: Acceptable results, but could be better. basename works correctly for only Safari

Re: [PHP] IE can't download, FF can: SSL ? Need special headers?

2009-05-22 Thread Dee Ayy
On Fri, May 22, 2009 at 1:24 PM, Eddie Drapkin oorza...@gmail.com wrote: or even just str_replace(' ' , '_', $name) consistent and works, no? Good one. Put it back on me rather than the browser developers. But that's in line with my requesting the user to use underscores. I'll implement this

Re: [PHP] IE can't download, FF can: SSL ? Need special headers?

2009-05-22 Thread Ashley Sheridan
On Fri, 2009-05-22 at 13:26 -0500, Dee Ayy wrote: Thoughts? -- what about just CamelCasing the name? no spaces. -- Bastien I've asked the user to use underscores, but they really shouldn't have to. Safari gets it right. I've found that header(Content-Disposition: