ekstra bilgi

$fp = fopen('data','w+',);

curl_setopt($ch , CURLOPT_FILE , $fp);

ile curldan donen butun herseyi dosyaya alabilirsiniz.