note 30597 added to function.set-time-limit

From: Date: Sun, 23 Mar 2003 12:56:06 +0000
Subject: note 30597 added to function.set-time-limit
Groups: php.notes 
Request: Send a blank email to php-notes+get-45683@lists.php.net to get a copy of this message
I think it might be useful to point out that set_time_limit() doesn't have any effect on stream operations. A stalled script, either during open operations (e.g. fsockopen()) or read operations (e.g. fgets()), can make your script run "forever". So it would be advisable to define timeouts for opening sockets (with the timeout parameter in fsockopen()) and for reading data from sockets (with socket_set_timeout()). -- http://www.php.net/manual/en/function.set-time-limit.php http://master.php.net/manage/user-notes.php?action=edit+30597 http://master.php.net/manage/user-notes.php?action=delete+30597 http://master.php.net/manage/user-notes.php?action=reject+30597

« previous php.notes (#45683) next »