I\'m using this....
function cURL($url, $header=NULL, $p=NULL)
{
$ch = curl_init();
curl_setopt($ch, CURLOPT_HEADER, true);
The curl constants are split into
CURL_COOKIEFILE
as the cookies.txt source which is read fromCURL_COOKIEJAR
as the datastore that is written back toYou do have to provide _COOKIEFILE
with an empty string to enable it IIRC, but _COOKIEJAR
if you want them stored. Normally set both options to the same name.