Change the URL to read:
www.myserver.de/securedownload.php/checkliste3.pdf?pdfdownload=checkliste3.p
df

Yes, it looks funky...  But everybody but IE5 on the Mac will ignore that
extra stuff between / and ?, and IE will use that as the filename prompt
now.

--
WARNING [EMAIL PROTECTED] address is an endangered species -- Use
[EMAIL PROTECTED]
Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm
----- Original Message -----
From: Sebastian Stadtlich <[EMAIL PROTECTED]>
Newsgroups: php.general
To: 'Php-General (E-Mail) <[EMAIL PROTECTED]>
Sent: Wednesday, August 29, 2001 10:12 AM
Subject: HELP : How to suggest a download-filename for IE on MAC


HELP i'm desperate....
I try to write a downloadskript, which results in the fillowing URL :
http://www.myserver.de/securedownload.php?pdfdownload=checkliste3.pdf

yes you guessed right : securedownload does some auth-stuff ....
it works on win2000 IE 6.0,5.5 NE 6.0 AND 4.76. it also works well on
MAC when used with Netscape 4.5 but not when used with IE 5.
it always suggests 'securedownload.php' as the filename, which of cause
sucks !!!!
I tried EVERY combination of the suggested headers at www.php.net/header
,
but can't get it to work.
here is what i use :

.....
header( "Content-type: application/download\n" );
header( "Content-Disposition: filename=$download" );
header( "Content-Description: PHP3 Generated Data" );

set_time_limit(0);
readfile('/home/path/to/myfiles/securepdfs/'.$download);
....

Anyone ever found a solution for MAC ??????
( i hate Mac, but my boss uses one, so ....... )

Sebastian


-- 
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