My system memory is 128M and set memory_limit to 128M, can use php fread to download files over 150M size? I tried not! Can be downloaded only 110M around!
thanks all,
$sent = 0;
$blocksize=(2 << 20);
$fp = fopen($download_path, "rb");
while($sent < $size){
echo fread($fp, $blocksize);
$sent += $blocksize;
}
exit(0);
I use this way, so how should I do?