בבקשה אחי תעזור לי הנה מה שיש לי:
PHP קוד:
ob_start();
$file_name=$_GET["name"];
header('Content-type: application/txt');
header('Content-Disposition: attachment; filename=$file_name');
$file_name="/home/roeesi/domains/dati-breshet.co.il/public_html/hwork/";
readfile('$file_name');
וזה מוריד לי קובץ מוזר בשם המשתנה שלי. בלי סיומת לקובץ בלי כלום
!
תודה.