Hi,

I'm working on a download script

header("Content-Type: application/octet-stream\n");
header("Content-Length: $size\n");
header("Content-Disposition: attachment; filename=\"$file\"\n");
header("Content-Description: Download\n");
readfile($path.$file);

This works, but when the initial file download box pops up it says
downloading file download.php (the name of the script), instead of the
filename. The correct filename does appear in the next save as box. Does
anyone know how to get the filename to show up in the initial file download
box? Or, alternatively, how to bypass the first box alltogether (like it is
done at downloads.com, for example)?

Thanks,

Adam



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to