title: execute php file_get_content for limited time and exit
body: <p>Is it possible to run php file_get_content for max 25 sec and stop with what ever is received and continue? The goal is to catch the timeout Error.</p>
  
  <p>This will not solve the problem as it only extents the time and at the end fatal error.</p>
  
  <pre><code>$opts = array('http' =&gt; array('method'  =&gt; 'GET', 'timeout' =&gt; 120));
  $context  = stream_context_create($opts);
  $html = @file_get_contents($crLink, false, $context);
  </code></pre>