Thanks for responding. Here's the relevent section of code:
<?php
$select_file = "test123.doc";
$ftp = ftp_connect($ftp_server);
ftp_login($ftp, $ftp_user, $ftp_pass);
$phpftp_dir = "www/scripts";
ftp_chdir($ftp,$phpftp_dir);
srand((double)microtime()1000000);
$randval = rand();
$tmpfile="/www/blazingstar/scripts/" . $select_file . "." . $randval;
ftp_get($ftp,$tmpfile,$select_file,FTP_BINARY);
ftp_quit($ftp);
if (!$file_mime_type) {
$file_mime_type="application/octet-stream";
}
/header("Content-Type: " . $file_mime_type);
header("Content-Disposition: attachment; filename=" . $select_file); */
readfile($tmpfile);
@unlink($tmpfile);
?>
Any suggestions?
SP