title: Pull an external page 10 seconds after the request using PHP
body: <p>I have two web pages that I'll call <code>domain.com/Alvin</code> and <code>domain.com/Bert</code> for this example.</p>
  
  <p>Alvin displays search results based on a query string variable, but it loads the results using JavaScript approximately two seconds after the page loads.</p>
  
  <p>Bert needs to use these results for occasional ad-hoc reporting, but due to the way the company is set up, I can't link directly into the database that Alvin is pulling from. A different team manages the Alvin page, so I won't have access to change their existing code.</p>
  
  <p>While I think I could do this with .NET, I'm unsure of how to do the request with PHP which is highly preferred for the page. </p>
  
  <p>Is anybody aware of how I could use <code>file_get_contents</code>, <code>file_get_html</code> or any other PHP functions to get the HTML of another page but only pull the HTML five seconds after the initial request to allow the JavaScript to update the results? </p>