Arkadaşlar acil yardımınıza ihtiyacım var..Ana sayfadaki videolarda vermiyor bu hatayı fakat benzerlerin bazılarında veriyor , bazılarında da bu hatayı veriyor..
Warning: simplexml_load_file(http://gdata.youtube.com/feeds/api/v...78PXbm0_player) [function.simplexml-load-file]: failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request in /home/xxx/public_html/show_video.php on line 13
Warning: simplexml_load_file() [function.simplexml-load-file]: I/O warning : failed to load external entity "http://gdata.youtube.com/feeds/api/videos/9B5t78PXbm0_player" in /home/xxx/public_html/show_video.php on line 13
Fatal error: Call to a member function children() on a non-object in /home/xxx/public_html/includes/class/apifunctions.php on line 202
Benzer videolara girerken hata veriyor
7
●814
- 11-08-2010, 23:28:52memory limitle alakası yok.
http://gdata.youtube.com/feeds/api/videos/9B5t78PXbm0
bu doğru feed adresi
http://gdata.youtube.com/feeds/api/videos/9B5t78PXbm0_player
bu yanlış feed adresi
basit bir replace ile halledebilirsiniz.
$feedURL = str_replace("_player", "", $feedURL); - 11-08-2010, 23:31:15Üyeliği durdurulduHocam _player yazısı yok burada

<?
require_once('mainfile.php');
if ($_GET['video_id'] == "") { redirect($site_url); } {
require_once("includes/class/apifunctions.php");
$video_id = $_GET['video_id'];
// set video data feed URL
$feedURL = 'http://gdata.youtube.com/feeds/api/videos/'.$video_id;
// read feed into SimpleXML object
$entry = simplexml_load_file($feedURL);
$video = parseVideoEntry($entry);
$meta_description = str_replace('"', '-', $video->description);
$meta_description = substr($meta_description, 0, 150);
$description = $video->description;
if ($video->thumbnailURL != ""):
$check = dbrows(dbquery("SELECT id FROM videos WHERE video_id = '".$video_id."'"));
if($check == 0):
dbquery("INSERT INTO videos VALUES (NULL, '".mysql_real_escape_string($video_id)."', '".mysql_real_escape_string($video->thumbnailURL)."', '".mysql_real_escape_string($video->title)."', '1', '0', '0', '0')");
else:
dbquery("UPDATE videos SET views=views+1 WHERE video_id = '".mysql_real_escape_string($video_id)."'");
endif;
$check = dbrows(dbquery("SELECT * FROM recent WHERE video_id = '".$video_id."'"));
if($check == 0):
$gtitle = str_replace("'", "-", $video->title);
dbquery("INSERT INTO recent VALUES ('".$video_id."', '".$video->thumbnailURL."', '".$gtitle."', '".time()."')");
else:
dbquery("UPDATE recent SET time='".time()."' WHERE video_id = '".mysql_real_escape_string($video_id)."'");
endif;
endif; - 11-08-2010, 23:33:15player yazısı olmaz zaten, o yazı feed adresinden ekleniyor.ZignoN adlı üyeden alıntı: mesajı görüntüle
// set video data feed URL
$feedURL = 'http://gdata.youtube.com/feeds/api/videos/'.$video_id;
bu satırın altına aşağıdakini ekle.
$feedURL = str_replace("_player", "", $feedURL);
