Re: HELP : How to suggest a download-filename for IE on MAC

From: Date: Thu, 30 Aug 2001 10:29:26 +0000
Subject: Re: HELP : How to suggest a download-filename for IE on MAC
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-65241@lists.php.net to get a copy of this message
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 richard@zend.com address is an endangered species -- Use ceo@l-i-e.com 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 <Stadtlich@mediaworx.de> Newsgroups: php.general To: 'Php-General (E-Mail) <php-general@lists.php.net> 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

« previous php.general (#65241) next »