title: file_get_contents
body: <p>I want to list 10.000 pages in the screen using php function <code>file_get_contents</code> to get information for a db.</p>
  
  <p>This works until about page 500, then the script stops running (the page has loaded) and displays no error.</p>
  
  <pre><code>&lt;?php
  
  for ($nr=1; $nr&lt;=10000; $nr++){
  
  $url = "http://site.com/u$nr";
  $string = file_get_contents($url);
  
  echo '&lt;textarea&gt;'.$string.'&lt;/textarea&gt;';
  
  }
  
  ?&gt;
  </code></pre>
  
  <p>@edit</p>
  
  <p>I want to get this information for my computer to be manipulated via Javascript, I think that gives a lot of work to manipulate HTML using PHP.
  Record these pages in db is a good idea.</p>