<?
$ch = curl_init();
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_USERAGENT, "Firefox/2.0.0.16");
curl_setopt($ch, CURLOPT_COOKIEFILE, 'cookie.txt');
curl_setopt($ch, CURLOPT_COOKIEJAR, 'cookie.txt');
$dos1 = "inendosyaadi";
$fopen1 = fopen($dos1,'w+');
curl_setopt($ch, CURLOPT_FILE, $fopen1);
$tospik1=curl_setopt($ch, CURLOPT_URL, "http://link");
curl_exec($ch);
fclose($fopen1);
curl_close($ch);
?>
kendim kullandığım kodlar