if(isset($_GET['dl'])){ $dosya = basename($_SERVER['PHP_SELF']); header('Content-type: text/plain'); header('Content-Disposition: attachment; filename="'.$dosya.'"'); readfile($dosya); }