Re: Forcing Download of a .jpg file in IE

From: Date: Thu, 30 Nov 2000 06:09:12 +0000
Subject: Re: Forcing Download of a .jpg file in IE
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-27973@lists.php.net to get a copy of this message
Just send a different Content-Type: header. header('Content-Type: application/x-download'); /* Whatever */ readfile('your.jpeg.file.jpg'); IE is also stupid, so if it sees the .jpg on the end of the file, so the end of your URL should be something like .bin, or .something that IE doesn't recognise. -jeremy Jeremy Brand :: Sr. Software Engineer :: 408-245-9058 :: jeremy@nirvani.net http://www.JeremyBrand.com/Jeremy/Brand/Jeremy_Brand.html for more - - - - - - - - - - - - - - - - - - - - - - - - - THIS SPACE FOR SALE - - - NO JOKE Get your own Free, Private email at http://www.smackdown.com/ - - - - - - - - - - - - - - - - - - - - - - - - - On Thu, 30 Nov 2000, kansast@mac.com wrote: > Date: Thu, 30 Nov 2000 00:09:12 -0600 > From: "kansast@mac.com" <kansast@mac.com> > To: php-general@lists.php.net > Subject: [PHP] Forcing Download of a .jpg file in IE > > Sorry to ask this, because I know it's been discussed probably in detail in > the mailing list. I have tried to search, and collect notes on this but have > yet to find a solution, and now I'm under a tight deadline. > > I'm wanting to provide a link on a web page, which would force a user's > browser to download a .jpg file specifically a user running IE 5 on the > MacOS. > > currently I have a solution which works in other browsers, and if I change > the preferences in IE 5 on the MacOS I can get it to work. But the client > doesn't like that option. > > Any suggestions would be appreciate. > > kansas > > kansat@mac.com > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net > >

« previous php.general (#27973) next »