one way
<a href="pathto/savefile.php?file=pathtosomefile.txt">download somefile.txt</a>
savefile.php is below
<?php $file=$_GET['file'];
if(!$file) return false;
header("Content-disposition: attachment; filename=$file");
header('Content-type: text/plain;');
readfile("$file");
?>
almostbob
Posting Sensei
3,149 posts since Jan 2009
Reputation Points: 571
Solved Threads: 376