While trying to make user download a file using headers the connection seems to be lost after a while so could someone please tell me how to work it out
http://www.chaska.com.pk/c1.php << here is the page with the following code
file size = 4.19 MB
connection is lost at around 1.91 MB using 64kps cable internet connection
<?php
set_time_limit(0);
header('Content-Description: File Transfer');
header("Content-type: audio/mpeg"); //mp3 contenttype
header("Content-Disposition: attachment; filename=ek.mp3");
header('Content-length: '.filesize("ek.mp3"));
readfile("ek.mp3");
?>
your help in this regard would be highly appretiated