Hi,
My script is supposed to download a selected file and pop up a save as dialog box to determine the file name. I've tested it on a Windows machine, and it works fine, but on my Mac it immediately downloads the file but it names it the same name as the php script. I appreciate any help.
<?php
set_time_limit(0);
session_start();
header("Cache-control: private");
header("Content-Type: application/octet-stream");
header("Content-Disposition: attachment; filename=$files");
header("Content-Transfer-Encoding: binary");
header("Location: ftp://user:pass@server/$direct/$files");
?>
This script just grabs the file determined by previous script.