note 45736 added to function.stream-select
| From: | abhishek dot ratani at gmail dot com | Date: | Thu, 16 Sep 2004 16:18:33 +0000 |
| Subject: | note 45736 added to function.stream-select | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-76838@lists.php.net to get a copy of this message | ||
Just a small change to the earlier post. The calctimeout function should be the following since we
are calculating in milliseconds, not microseconds.
// The function to calculate the timeout
function calctimeout($maxtime, $starttime)
{
return $maxtime - ((microtime(true) - $starttime) * 1000);
}
----
Manual Page -- http://www.php.net/manual/en/function.stream-select.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+45736
Delete -- http://master.php.net/manage/user-notes.php?action=delete+45736&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+45736&report=yes
Search -- http://master.php.net/manage/user-notes.php