bunu resim.php olarak kaydetdiğini var sayıyorum
Kullanım Şekli
resim.php?r=http://abone.iha.com.tr/resim.png
anladığım kadarıyla bunu mu yapmaya çalışıyorsun
$ch = curl_init();
curl_setopt ($ch, CURLOPT_URL,"".$_GET['r']);
curl_setopt ($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_BINARYTRANSFER,1);
curl_setopt($ch, CURLOPT_HEADER, 0);
//curl_exec ile artık resim elimizde
$curlresim = curl_exec($ch);
curl_close($ch);
header('Content-Type: image/jpeg');
echo $curlresim;
AhmetWeb Çok teşekkür ederim zaman harcayıp , cevap verdiğin için bende bulduğum çözümü paylaşmak için girdim r10'a ve senin yazdığını yaptığımı farkettim zamanlama biraz geciksede başkalarının illaki işine yarayacak kodlar. benim yazdığım blok,
function site_kaynak3($url) {
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "postgonderilecekurl");
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS,"gereklipostalanları");
curl_setopt($ch, CURLOPT_REFERER, "Referer");
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_COOKIEJAR, "cerez.txt");
curl_setopt($ch, CURLOPT_COOKIEFILE, "cerez.txt");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_HEADER, false);
curl_setopt($ch, CURLOPT_USERAGENT, "Opera/9.0 (Windows NT 5.1; U; en; (R1 1.5))");
curl_exec($ch);
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_POST, 0);
return curl_exec($ch);
}
$resimurl = $_GET["resurl"]."&DT=2";
$resimurl = trim($resimurl);
$resim = site_kaynak3($resimurl);
header("Content-Type: image/jpeg");
echo $resim;Şeklinde tekrar teşekkürler..