antoniobogota
New Member
about this basic curlscipt (php):\[code\]$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);\[/code\]php.ini max memory=64MBthis 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)\[quote\] [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\[/quote\]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.