about this basic curlscipt (php):
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $urltofile);
curl_setopt($ch, CURLOPT_HTTPHEADER, $header);
curl_setopt($ch, CURLOPT_BINARYTRANSFER,1);
curl_exec ($ch);
curl_close ($ch);
php.ini max memory=64MB
this script works withou problems om server1 (php 5.2.17 $urltofile, even when $urltofile has a size of eg 2GB. But on server2 also 'php v5.2.17) I get this error when running the script: (error_log)
[DATE] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate xxxxxxx bytes) in /home/user/public_html/test.php on line x
It seems that on server 2, the file is fully written to the memory before is get outputted, while server1 streams the file, like it should be.