Here it is........
<?
$fname = "/usr/local/work/test.tar" ;
if (is_file($fname))
{
header("Content-type: */*; name=/usr/local/work/test.tar");
header("Content-disposition: attachment; filename=test.tar");
header("Pragma: no-cache");
header("Expires: 0");
$file=fopen($fname, "r");
fpassthru($file);
}
else
{
// file not found report this problem to the administrator
echo ("DEBUG TEST: not found .........");
}
?>