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.
PHp copy fonksiyonu
3
●742
- 16-10-2014, 20:43:57Kimlik doğrulama veya yönetimden onay bekliyor.hostunla alakalı. bazı hostlar güvenlik amacı vs ile copy fonksiyonunu kapatıyor. Curl kullanabilirsin onun yerine ve daha hızlı indirir.sersat adlı üyeden alıntı: mesajı görüntüle
Ö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"); - 18-10-2014, 21:33:48Chmod 777 yapin eger yine olmazsa fwrite fonksiyonu'nu kullanin.sersat adlı üyeden alıntı: mesajı görüntüle