title: simple html dom scraping large html file
body: <p>I need to scrape a large html file (eg: <a href="http://www.indianrail.gov.in/mail_express_trn_list.html" rel="nofollow noreferrer">http://www.indianrail.gov.in/mail_express_trn_list.html</a>) using simple html dom. I started with a simple script:</p>
  
  <pre><code>&lt;?php
  require "simple_html_dom.php";
  echo file_get_html('http://www.indianrail.gov.in/mail_express_trn_list.html')-&gt;plaintext;
  ?&gt;
  </code></pre>
  
  <p>which shows nothing, just a blank page with the error message in Apache error.log file</p>
  
  <pre><code> PHP Notice:  Trying to get property of non-object in /var/www/index.php on line 3
   PHP Notice:  Trying to get property of non-object in /var/www/index.php on line 3
  </code></pre>
  
  <p>at the same time all other pages (eg: <a href="http://www.indianrail.gov.in/special_trn_list.html" rel="nofollow noreferrer">http://www.indianrail.gov.in/special_trn_list.html</a>) works fine with the same script.</p>