我使用下面的代碼來獲得一些YouTube的視頻,這是以前工作正常的標題YouTube視頻的標題,但我正在從最近幾天一些錯誤/警告,得到
$entry = simplexml_load_file('http://gdata.youtube.com/feeds/api/videos/' . $key);
return ($entry) ? ucwords(strtolower($entry->children('http://search.yahoo.com/mrss/')->group->title)) : false;
警告:使用simplexml_load_file()[function.simplexml負荷文件]:http://gdata.youtube.com/feeds/api/videos/jIP4xI9C8us:1:分析器錯誤:文檔是在線路214
警告在/home/public_html/panel/index.php空:使用simplexml_load_file()[function.simplexml -load-file]:在214行/home/public_html/panel/index.php
警告:使用simplexml_load_file()[function.simplexml負荷文件]:^中的線/home/public_html/panel/index.php 214
警告:使用simplexml_load_file()[function.simplexml負荷文件]:http://gdata.youtube.com/feeds/api/videos/jIP4xI9C8us:1:分析器錯誤:開始標記預期, '<' 在/home/public_html/panel/index.php沒有發現在線路214
警告:使用simplexml_load_file()[function.simplexml負荷文件]:在在線214上的/home/public_html/panel/index.php
警告:simplexml_load_file()[function.simplexml-load-file]:^ 214行中的/home/public_html/panel/index.php
'分析器錯誤:文檔被empty' –