note 72587 added to function.stream-select

From: Date: Thu, 25 Jan 2007 09:36:01 +0000
Subject: note 72587 added to function.stream-select
Groups: php.notes 
Request: Send a blank email to php-notes+get-122175@lists.php.net to get a copy of this message
Note that you should change the calctimeout function below to divide the outcome by 1.000.000 otherwise you'll be waiting for two years instead of one minute for the socket to timeout... <?php // The function to calculate the timeout function calctimeout($maxtime, $starttime) { return ($maxtime - ((microtime(true) - $starttime) * 1000000))/1000000; } ?> ---- Server IP: 194.109.193.94 Probable Submitter: 84.81.132.35 ---- Manual Page -- http://www.php.net/manual/en/function.stream-select.php Edit -- https://master.php.net/note/edit/72587 Del: integrated -- https://master.php.net/note/delete/72587/integrated Del: useless -- https://master.php.net/note/delete/72587/useless Del: bad code -- https://master.php.net/note/delete/72587/bad+code Del: spam -- https://master.php.net/note/delete/72587/spam Del: non-english -- https://master.php.net/note/delete/72587/non-english Del: in docs -- https://master.php.net/note/delete/72587/in+docs Del: other reasons-- https://master.php.net/note/delete/72587 Reject -- https://master.php.net/note/reject/72587 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#122175) next »