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
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
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
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;
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
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
]
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
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
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);
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
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');
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
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.
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
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
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:
16 matches
Mail list logo