title: PHP file_get_contents() is extremely slow
body: <p>I've been working on a certain code for a while. I've noticed the execution time of the code is about 10-13 seconds - which is very slow.</p>
  
  <p>Therefore, I've decided to figure out which function makes the execution time so slow, and I've figured out the only <code>file_get_contents($url)</code> is running for 9 seconds. The <code>$url</code> is Facebook graph API data.</p>
  
  <p>A suggestion in another message on Stackoverflow suggested using</p>
  
  <pre><code>$context = stream_context_create(array('http' =&gt; array('header'=&gt;'Connection: close')));
  $content = file_get_contents($dataUrl,false,$context);
  </code></pre>
  
  <p>I've also tried this, and it didn't improve the run time at all. Is there any way to pull the data which won't last so long?</p>
  
  <p>Any suggestion will be helpful.</p>