thanks for the response, this is my code here:
// I have created a file for cookiefile, one for cookiejar, and one for sample.txt and they are all world readable and writeable
//after all check has been done, download the new id's file - Im going to use curl.
$file = "sample.txt";
$url = "
http://groups.yahoo.com/group/NaijaPoli ... age/138888";
echo cURLdownload( $url, $file);
function cURLdownload($url, $file)
{
//if( !cURLcheckBasicFunctions() ) return "UNAVAILABLE: cURL Basic Functions";
$ch = curl_init();
if($ch)
{
$fp = fopen($file, "w");
if($fp)
{
if( !curl_setopt($ch, CURLOPT_URL, $url) ) return "FAIL: curl_setopt(CURLOPT_URL)";
if( !curl_setopt($ch, CURLOPT_FILE, $fp) ) return "FAIL: curl_setopt(CURLOPT_FILE)";
if( !curl_setopt($ch, CURLOPT_HEADER, 0) ) return "FAIL: curl_setopt(CURLOPT_HEADER)";
if( !curl_setopt($ch, CURLOPT_COOKIEFILE, './cukiefile') ) return "FAIL: curl_setopt(CURLOPT_cookiefile)";
if( !curl_setopt($ch, CURLOPT_COOKIEJAR, './cukiejar') ) return "FAIL: curl_setopt(CURLOPT_cookiejar)";
if( !curl_exec($ch) ) return "FAIL: curl_exec()";
curl_close($ch);
fclose($fp);
return "SUCCESS: $file [$url]";
}
else return "FAIL: fopen()";
}
else return "FAIL: curl_init()";
}
After all this, I get a response in my sample.txt that says Aren't you supposed to be somewhere else?
I know that I am doing something wrong with the cookie/session setting, I just don't know what it is.
I'ld appreciate it if anyone can help.
Thanks again.