hi,
in my application there is a code block that looks something like this:
$fp = fopen($rssURL,"r")
while ($data = fread($fp, 4096))
{
//process data
}
the $rssURL is the location of an rss file on some website’s server.
so my question is: when does fopen() and/or fread() time out? is there any way to detect this? i don’t want my script to sit there for hours trying to open one 2K file? can i set the limit?
thanks