title: Alternative for DOMDocument()
body: <p>i am using DOMDocument() to include RSS feed in my code. However i get this error:</p>
  
  <p>URL file-access is disabled in the server configuration</p>
  
  <p>and thats because my server doesnt allow me either to modify the php.ini file or to set allow_url_fopen to ON. </p>
  
  <p>Is there a workaround for this? This is my full code:</p>
  
  <pre><code>&lt;?php
  $rss = new DOMDocument();
  $rss-&gt;load('rss.php');
  
  $feed = array();
  foreach ($rss-&gt;getElementsByTagName('item') as $node) {
  $item = array (
  'title' =&gt; $node-&gt;getElementsByTagName('title')-&gt;item(0)-&gt;nodeValue,
  'desc' =&gt; $node-&gt;getElementsByTagName('description')-&gt;item(0)-&gt;nodeValue,
  'link' =&gt; $node-&gt;getElementsByTagName('link')-&gt;item(0)-&gt;nodeValue,
  'date' =&gt; $node-&gt;getElementsByTagName('pubDate')-&gt;item(0)-&gt;nodeValue,
  );
  array_push($feed, $item);
  }
  $limit = 5;
  echo '&lt;table&gt;';
  for($x=0;$x&lt;$limit;$x++) {
   $title = str_replace(' &amp; ', ' &amp;amp; ', $feed[$x]['title']);
   $link = $feed[$x]['link'];
  
   echo &lt;&lt;&lt;EOF
   &lt;tr&gt;
    &lt;td&gt;&lt;a href="$link"&gt;&lt;b&gt;$title&lt;/b&gt;&lt;/a&gt;&lt;/td&gt;
   &lt;/tr&gt;
  EOF;
  }
  echo '&lt;/table&gt;';
  ?&gt;
  </code></pre>
  
  <p>Thank you.</p>