Re: re:Timing out an fgets

From: Date: Fri, 18 Aug 2000 06:42:48 +0000
Subject: Re: re:Timing out an fgets
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-12418@lists.php.net to get a copy of this message
> Thanks , > > I don't get what the socket descripter is suppose to be is this the variable fsockopen > uses? > > int socket_set_blocking(int socket descripter, int mode) $fd = fsockopen(something...); socket_set_blocking($fd, FALSE); that should do it. > mode 0 = nonblocking - returns straight away > mode 1 = blocking - waits for response Yup. > so it would be : > > socket_set_blocking($fp, 0); Yes. :) -jeremy brand _______________________________________________________________________ GnuPG Fingerprint: 9F5E 95E0 1CC2 E054 84EA 6099 8ACD 9DBA D2C0 5EA9 _ http://www.jeremybrand.com/jeremy/brand/jeremy_brand.html for more __

« previous php.general (#12418) next »