<?php include('../inc/conf.php'); $id = intval($_GET['id']); $dt = mysqli_fetch_assoc(mysqli_query($connect_db, "SELECT id,dt FROM t_site WHERE id='$id'")); $string = $dt['dt']; if(isset($_SERVER['HTTP_USER_AGENT']) and strpos($_SERVER['HTTP_USER_AGENT'],'MSIE')) Header('Content-Type: application/force-download'); else Header('Content-Type: application/octet-stream'); Header('Accept-Ranges: bytes'); //Header('Content-Length: '.strlen($string)); Header('Content-disposition: attachment; filename="verify.txt"'); echo $string; exit; ?>