I don't have the actual code I used in front of me but I will try to give you a working example.
Put this code into a php script like
upload.php. Then you need to send the information for the $path and $file with the link (e.g. <a href=\"upload.php?file=filename.txt&path=/ftp/\">filename.txt</a>).
There are better ways to send the information about the $path and $file, but for this example this is ok.
<?
$base = $path . $file;
if (file_exists($base)) {
$fp = fopen($base, "r");
$size = filesize($base);
header("Content-type: application/octet-stream/ name=$file");
header("Content-Length: $size");
header("Content-Transfer-Encoding: binary");
header("Accept-Ranges: none");
header("Content-Disposition: attachment; filename=$file");
fpassthru($fp);
fclose($fp);
?>
Hope this helps..
MikeJ