[thelist] anyone have a download manager? ASAP
Kasimir K
evolt at kasimir-k.fi
Thu May 5 13:52:36 CDT 2005
Brian Cummiskey scribeva in 2005-05-05 17:58:
> I need to whip something up real quick, simple, and bare-bones.
> so basically what i need is something that will allow me to go to
> download.asp?file=path.wav, set the mime type/headers to pop the
> save-as/open dialog box so i can save it to my local system nice and
> easy.
> i can run php, asp, c#, vb.net, or javascript.
<?php
header("Content-type: " . $mime_type);
header("Content-Disposition: attachment; filename=" . $filename);
readfile(PATH_TO_FILE_STORE . $filename);
?>
.k
More information about the thelist
mailing list