Hi,
I've finally gotten my code to download a client specified file, but it names the saved file the same name as the script that handled it. Any help is extremely appreciated.
the variables $files and $direct are passed to this script from a script with a form. The $files variable must be properly sent because it downloads the right file, but gives it the name of the script.
<?php
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://path/$direct/$files");
?>