note 30592 rejected from function.stream-set-timeout by rioter

From: Date: Sun, 23 Mar 2003 09:46:42 +0000
Subject: note 30592 rejected from function.stream-set-timeout by rioter
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-45675@lists.php.net to get a copy of this message
I'm attempting to do this $stdin=fopen("php://stdin","r"); $time=time() stream_set_timeout($stdin,61); $auth=0; while ( ($auth==0 || $auth==1) && time()<$time+60) { while (!feof($stdin) && $auth==0 && time()<$time+60) { $test=fgets($stdin); /* I get stuck here unless i hit enter i never get to my time out */ } } echo "you have timedout\n";

« previous php.notes (#45675) next »