note 27390 deleted from function.fopen by victor

From: Date: Wed, 04 Dec 2002 11:07:15 +0000
Subject: note 27390 deleted from function.fopen by victor
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-40334@lists.php.net to get a copy of this message
If you're accepting urls from visitors which you fetch data from, note that file() won't timeout if the server is behaving badly. Take this url as an example: http://www.inware.com/justsomeurl When parsing this url, your script will just stay at file() indefinitely until the whole script timeouts. You could use the "hairy" method someone proposed on this page, but it's a bit - well - hairy. Oh what would I give for a timeout parameter in the file() command! *hint* *hint*

« previous php.notes (#40334) next »