title: How to open a file on a distant server with XML Reader in php?
body: <p>I have got a huge xml file (~ 85 Mo) and I would like to open it with XML Reader (then my script read selected lines). I have downloaded it on my PC and my script works (using Wamp).</p>
  
  <p>Now I would like to do the same online. Server login is <em>aaa</em> and password is <em>bbb</em> (of course it's an example).</p>
  
  <p>I tried the following statement:</p>
  
  <pre><code>$xml = new XMLReader();
  if ($xml-&gt;open('ftp://aaa:bbb@ftp.website.com/myfile.xml')){
      echo 'OK';
  }
  
  while($xml-&gt;read()){
      // my script here... 
  }
  </code></pre>
  
  <p>It seems I am wrong because my web browser indicates me that the page is too long to load. What is the good way to proceed? Or did I miss something important?</p>