Force Download.

From: Adam (adam_at_myhome.address)
Date: 10/28/04


Date: Wed, 27 Oct 2004 18:14:51 -0700


Can anyone tell me why the following code works on every browser or
every platform, except for Internet Explorer for Mac OS and Mac OSX, for
which it puts the script name download.php4 instead of the file name in
the save file requester confusing users.

If you correct the file name in the requester then you will get the php
script downloaded instead.

Here is the code ( I posted it as a quote to prevent word wrapping.

> header("Content-Type: application/force-download");
> header("Content-Length: 21215");
> header("Content-Disposition: attachment; filename=\"qt_platform_checker.mov\"");
> readfile("http://192.168.0.5/test/test.mov");
> exit();

Thank you for any suggestions.



Relevant Pages

  • Re: Force Download.
    ... >Can anyone tell me why the following code works on every browser or ... >every platform, except for Internet Explorer for Mac OS and Mac OSX, for ... >the save file requester confusing users. ...
    (alt.php)
  • IE on Mac OSX bug with certain aspx-pages
    ... have come across a strange bug in Internet Explorer for Mac OSX: ... I have also tried, with no luck, to write the special characters using: ...
    (microsoft.public.mac.explorer)
  • Spell check form field
    ... Is it possible to spell check a forms field? ... I'm running 10.1 under Mac OSX but version and platform don;t seem to ... I'll probably need to write a couple of macros but don't even know WHAT to ...
    (microsoft.public.word.spelling.grammar)