curl ile çekersen timeout koyabilirsin.
<?php
$url = "http://www.google.com.tr/";
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
$browser = $_SERVER['HTTP_USER_AGENT'];
curl_setopt($ch, CURLOPT_USERAGENT, $browser);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 10); //Burası 10 Saniye
curl_setopt($ch, CURLOPT_REFERER, "http://www.google.com.tr/");
$source = curl_exec($ch);
curl_close($ch);
?>