Ben kullanıcı dosya indirme sağlayan bir komut dosyası var (bir bin2hex yaptıktan sonra bir blob alanda depolanan ())
function hex2bin($h){ ... } // code to get $filecontent,$filesize,$uploadname from database header('Content-Description: File Transfer'); header('Content-Type: application/octet-stream'); header("Content-Length: $filesize"); header('Content-Disposition: attachment; filename="'.$uploadname.'"'); echo hex2bin($filecontent);
everything is working fine, except the browser is taking 3 to 4 seconds after downloading the file to finally terminate the http session.
Buna neden olan nedir Herhangi bir ipucu.
thanks. Pari