Re: PHP download problem IE5 on mac

From: Date: Thu, 14 Nov 2002 20:30:25 +0000
Subject: Re: PHP download problem IE5 on mac
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-124489@lists.php.net to get a copy of this message
On Thursday 14 November 2002 23:22, Ernest E Vogelsinger wrote: > At 15:13 14.11.2002, Javier Montserat spoke out and said: > --------------------[snip]-------------------- > > >I'm using this code to various files for download via a http header - > > > >$filename = basename($filepath); > >header("Content-type: unknown/unknown"); > >header("Content-Disposition: attachment; filename=$filename"); > >readfile($filepath); > > > >works fine in most cases - the save dialogue appears. However - > > > >IE on a MAC loads the file inline rather than throwing the save prompt. > > --------------------[snip]-------------------- > > Try the "application/octet-stream" content type. Any browser should ask to > save this. Or most likely an IE bug, it makes a regular appearance in the Windows versions. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* I don't care where I sit as long as I get fed. -- Calvin Trillin */

« previous php.general (#124489) next »