<?php
 $failinimi="sqlnaide2.txt";
 $suurus=filesize($failinimi);
 $f=fopen($failinimi,"rb");
 header("Content-type: application/octet-stream");
 header("Content-disposition: attachment; filename=$failinimi");
 header("Content-length: $suurus");
 $andmed=fread($f, $suurus);
 print $andmed;
?>