Results 1 to 2 of 2
Thread: readfile() stopping abruptly
Feb 4, 2007, 22:05 #1
readfile() stopping abruptly
I seem to have a problem.
I am attempting to download files from a php page using the readfile() function but anytime a file that is larger than 8MB attempts to get downloaded it stops at exactly 7.74238 MB. It doesn't matter what the file is, even though on the download page it displays the correct size of the file being downloaded.
Is there something wrong with what I'm doing? here's my code:
header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
header('Content-disposition: attachment; filename=' . $row['file_name'] . "\n");
header('Content-length: ' . filesize($row['file_disk_location']));
Feb 4, 2007, 23:23 #2
- Join Date
- Mar 2006
- Gold Coast, Australia
- 0 Post(s)
- 0 Thread(s)