title: Warning simplexml_load_file parser error from youtube
body: <p>I get this error (occasionally) when I'm searching videos in youtube script, other times it just works, but then the problem appears again. Can someone help me to fix this issue?</p>
  
  <p>Error Message:</p>
  
  <pre><code>Warning: simplexml_load_file(http://gdata.youtube.com/feeds/api/videos?vq=music&amp;orderby=relevance&amp;max-results=10&amp;start-index=201&amp;lr=en): failed to open stream: HTTP request failed! HTTP/1.0 403 Forbidden in /home/website/public_html/search.php on line 119 
  
  Warning: simplexml_load_file(): I/O warning : failed to load external entity "http://gdata.youtube.com/feeds/api/videos?vq=music&amp;orderby=relevance&amp;max-results=10&amp;start-index=201&amp;lr=en" in /home/website/public_html/search.php on line 119
  
  Fatal error: Call to a member function children() on a non-object in /home/website/public_html/search.php on line 122 
  </code></pre>
  
  <p>Line 119:</p>
  
  <pre><code>$sxml = simplexml_load_file($feedURL);
  </code></pre>
  
  <p>Line 122:</p>
  
  <pre><code>$counts = $sxml-&gt;children('http://a9.com/-/spec/opensearchrss/1.0/');
  </code></pre>