Re: [PHP] Re: forcing file downloads
On Friday 14 June 2002 10:47, Timothy J. Luoma wrote: > On Wed, 12 Jun 2002, Justin French wrote: > > I know this has been discussed many times, but I've been hunting through > > the archives with very little resolution on the issue. > > The user can define certain things given the way they want mime types to > be handled. > > PDF used to be a good solution until several browsers decided that they > would display PDF. > > So if I want to make sure someone downloads a file, I make it a ZIP, pure > and simple. Some browsers are able to open ZIP files automatically. The solution is to use an 'undefined' mime-type such as 'application/octet-stream' which, in theory, should force all downloads to present a 'save as' dialog. -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* The best way to accelerate a Macintoy is at 9.8 meters per second per second. */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Re: forcing file downloads
This is determined by your mime types in apache conf file (assuming you are using apache) if the file type is not defined apache will try and download the file instead of parsing it for the browser. Bruce Karstedt President Technology Consulting Associates, Ltd. Tel: 847-735-9488 Fax: 847-735-9474 -Original Message- From: Timothy J. Luoma [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 13, 2002 9:48 PM To: Justin French Cc: php Subject: [PHP] Re: forcing file downloads On Wed, 12 Jun 2002, Justin French wrote: > I know this has been discussed many times, but I've been hunting through > the archives with very little resolution on the issue. The user can define certain things given the way they want mime types to be handled. PDF used to be a good solution until several browsers decided that they would display PDF. So if I want to make sure someone downloads a file, I make it a ZIP, pure and simple. TjL -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php