Force Download.
From: Adam (adam_at_myhome.address)
Date: 10/28/04
- Next message: Tyrone Slothrop: "Re: Force Download."
- Previous message: Tyrone Slothrop: "Headers, downloads and redirection"
- Next in thread: Tyrone Slothrop: "Re: Force Download."
- Reply: Tyrone Slothrop: "Re: Force Download."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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.
- Next message: Tyrone Slothrop: "Re: Force Download."
- Previous message: Tyrone Slothrop: "Headers, downloads and redirection"
- Next in thread: Tyrone Slothrop: "Re: Force Download."
- Reply: Tyrone Slothrop: "Re: Force Download."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|