in my application there is a code block that looks something like this:
the $rssURL is the location of an rss file on some website's server.PHP Code:
$fp = fopen($rssURL,"r")
while ($data = fread($fp, 4096))
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?