Arkadaslar sitemde asagidaki gibi bir hata var.Dreamhost kullaniyorum nasil duzeltebilirim.Yardim ederseniz cok memnun olurum
Warning: file_get_contents() [function.file-get-contents]: URL file-access is disabled in the server configuration in /home/.mastro/ali/www.*** on line 9
Warning: file_get_contents(http://lisans.lugesoft.com/checklicence.php?licence=***) [function.file-get-contents]: failed to open stream: no suitable wrapper could be found in /home/.mastro/ali/www.***/index.php on line 9
Dreamhost Warning: file_get_contents() [function.file-get-contents]: hatasi
11
●3.319
- 22-08-2007, 20:10:48Kimlik doğrulama veya yönetimden onay bekliyor.dream host allow_fopen_url ' Değeri off ondan dolayı izin vermiyor
Onun yerine Curl İle Yap Bu İşi
function dosya_indir($feed){ $ch = curl_init(); $timeout = 0; curl_setopt ($ch, CURLOPT_URL, $feed); curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt ($ch, CURLOPT_CONNECTTIMEOUT, $timeout); $veri= curl_exec($ch); curl_close($ch); return $veri; }Kullanımı
dosya_indir("http://www.youtube.com/index.php")Şeklinde - 23-08-2007, 14:12:32Üyeliği durdurulducURL'a da gerek yok gerçi.
parse_url() kullanarak fsockopen'da kullanabilirsin.
Yani bir çok yöntemi var bu işlemin. Hangisini tercih edersen.