title: PHP working with XMLReader with HUGE data source
body: <p>I need to parse a ginormous data source (14.9M lines of XML, 1.7GB).</p>
  
  <p>I am having problems working with XMLReader to do this. I haven't before needed anything but SimpleXML, but given that I really can't load this whopper into memory I will need to do this via stream.</p>
  
  <p>I have written this code:</p>
  
  <pre><code>&lt;?php
  
  $xml = new XMLReader(); 
  $xml-&gt;open('public.xml'); 
  
  
  while($xml-&gt;read())
  {
      echo '.';
  }
  $xml-&gt;close();
  ?&gt;
  </code></pre>
  
  <p>But am having issues with execution. Namely, I get "Fatal error: Maximum execution time of 30 seconds exceeded..."</p>
  
  <p>When I do set_time_limit(600) the browser just crashes.</p>
  
  <p>It is crashing because it can't handle the number of "." created? </p>
  
  <p>What do you recommend here? Ultimately, I need this XML file into a relational database. I am testing feasibility before I get into the detail of schema.</p>