merhaba bu kodu sitemde kullandığımda
$headers = get_headers('http://gdata.youtube.com/feeds/api/videos/'.$yt_id);
Warning: get_headers() [function.get-headers]: http:// wrapper is disabled in the server configuration by allow_url_fopen=0 in...
hatası alıyorum.hostingi 0fees.net ten ücretsiz aldım.o yüzden hostingdeki sınırlamadan kaynaklandığını düşünüyorum.buna anternatif bir kod varmı
bu koda anternatif--->tek satır
4
●400
- 06-11-2013, 21:57:44malesef hocam olmadı.yada ben kodu kullanamadımmsgr adlı üyeden alıntı: mesajı görüntüle
- 06-11-2013, 22:15:32Kimlik doğrulama veya yönetimden onay bekliyor.Arkadaşım allow_url_fopen kapalıysa curl kullan. fsockopen de kullanabilirsin ama karışık gelebilir. Curl ile en basit hali şöyle:
$ch = curl_init(); curl_setopt($ch, CURLOPT_URL, 'http://www.google.com'); curl_setopt($ch, CURLOPT_HEADER, true); curl_setopt($ch, CURLOPT_NOBODY, true); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_TIMEOUT, 30); curl_exec($ch); print_r(curl_getinfo($ch)); curl_close($ch );