title: file_get_contents timeout
body: <p>I am using <a href="http://php.net/file_get_contents" rel="nofollow"><code>file_get_contents</code></a>, and I want to <a href="http://php.net/manual/context.http.php" rel="nofollow">define a timeout</a>. I tried to do it by creating a context like this: </p>
  
  <pre><code>$timeout = array('http' =&gt; array('timeout' =&gt; 6));
  
  $context = stream_context_create($timeout);
  
  $xml = file_get_contents($hostName,false,$context);
  </code></pre>
  
  <p>But It ignores this value.</p>