Hi there

Is it possible to set a timeout for a fopen()?

I have this script which collects a large amount of data from the web, but if one of the site's down... My script times out.

I would like something like this:
------------------------------------
<?
if (!$timeout) {
$oFile = fopen($location,"r")
}else{
echo "connection timeout for $location";
}
?>
-------------------------------------




------------------
regds..
-ulrik-