Hey, I'm having problems with the name my script is giving the file that's supposed to download. The problem seems to be concentrated with Mac in IE. The file immediately starts downloading without any download prompt. On Windows, however, a prompt appears with the desired file name. Is there another header I should be using to fix the Mac-centric problem?
Please help.
set_time_limit(0);
session_start();
header("Cache-control: private");
header("Content-Type: application/octet-stream");
header("Content-Disposition: attachment; filename=$file");
header("Content-Transfer-Encoding: binary");
header("Location: [url]ftp://user:pass@server.com/[/url]$direct/$file");