title: get the title of a YouTube video
body: <p>I am using following code to get title of some YouTube video, which was working fine previously but I am getting some error/warnings since last few days,</p>
  
  <pre><code>$entry = simplexml_load_file('http://gdata.youtube.com/feeds/api/videos/' . $key);
  return ($entry) ? ucwords(strtolower($entry-&gt;children('http://search.yahoo.com/mrss/')-&gt;group-&gt;title)) : false;
  </code></pre>
  
  <blockquote>
    <p>Warning: simplexml_load_file() [function.simplexml-load-file]: <a href="http://gdata.youtube.com/feeds/api/videos/jIP4xI9C8us:1" rel="nofollow">http://gdata.youtube.com/feeds/api/videos/jIP4xI9C8us:1</a>: parser error : Document is empty in /home/public_html/panel/index.php on line 214</p>
    
    <p>Warning: simplexml_load_file() [function.simplexml-load-file]: in /home/public_html/panel/index.php on line 214</p>
    
    <p>Warning: simplexml_load_file() [function.simplexml-load-file]: ^ in /home/public_html/panel/index.php on line 214</p>
    
    <p>Warning: simplexml_load_file() [function.simplexml-load-file]: <a href="http://gdata.youtube.com/feeds/api/videos/jIP4xI9C8us:1" rel="nofollow">http://gdata.youtube.com/feeds/api/videos/jIP4xI9C8us:1</a>: parser error : Start tag expected, '&lt;' not found in /home/public_html/panel/index.php on line 214</p>
    
    <p>Warning: simplexml_load_file() [function.simplexml-load-file]: in /home/public_html/panel/index.php on line 214</p>
    
    <p>Warning: simplexml_load_file() [function.simplexml-load-file]: ^ in /home/public_html/panel/index.php on line 214</p>
  </blockquote>