Arkadaşlar daha önce bir çok yerde kullandım fakat sorunu çözemedim.
[16-Oct-2014 18:41:54 Europe/Helsinki] PHP Warning: copy(): Unable to access
http://enesbektas.com/wp-content/upl...4Pr-300x85.png in /home/firmarehberi/public_html/trsektor/kaydet.php on line 6
böyle bir hata veriyor sebebi nedir 777 verili.
hostunla alakalı. bazı hostlar güvenlik amacı vs ile copy fonksiyonunu kapatıyor. Curl kullanabilirsin onun yerine ve daha hızlı indirir.
Örnek:
function resimindir($file, $local_path, $newfilename)
{
$out = fopen($local_path."/".$newfilename, 'wb');
$ch = curl_init();
curl_setopt($ch, CURLOPT_FILE, $out);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_URL, $file);
curl_exec($ch);
curl_close($ch);
}
resimindir("resim_urlsi", "resim-klasoru", "resim.jpg");