How to bypass (pipe) curl_exec return value directly to a file?

From: Date: Tue, 13 Oct 2009 04:01:04 +0000
Subject: How to bypass (pipe) curl_exec return value directly to a file?
Groups: php.general 
Request: Send a blank email to php-general+get-298875@lists.php.net to get a copy of this message
Newbie question. I need to download a very large amount of xml data from a site using CURL. How to bypass (pipe) curl_exec return value directly to a file, without using memory allocation? set_time_limit(0); $ch = curl_init($siteURL); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $mixed = curl_exec($ch); How to set/pipe $mixed as a (disk) file, so that data returned by curl_exec is directly saved to the disk-file, and not involving memory allocation? Thank you. -PHP 5 -Windows XP

« previous php.general (#298875) next »