Re: php blocking functions
| From: | Sofhian Mahat | Date: | Mon, 18 Feb 2002 19:19:35 +0000 |
| Subject: | Re: php blocking functions | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-85258@lists.php.net to get a copy of this message | ||
Hey List,
That is a great question. I too would like to know. Does anyone on this list know anything about
this?
Thanks,
Chad
----- Original Message -----
From: Sofhian Mahat
To: php-general@lists.php.net
Sent: Saturday, February 16, 2002 9:33 PM
Subject: [PHP] php blocking functions
Hello everyone,
I am searching for an alternate way to accomplish user synchronization.
I would like two or more users to block on the read of some stream, so that when one person writes
to it, the other person(s) will read it. The only way I currently know to do this is with the
socket functions. However, this poses a small problem. If I use the socket functions, I have to
keep a script running on the server at all times. I would really like to have users block at the
end of a file until new information is appended. I certainly don't want to have all my clients
sit in infinite while loops, and I'm sure my isp doesn't either. I may be shit out of
luck anyway, if they are killing processes that run for too long.
I appreciate any and all suggestions. If someone knows exactly which functions block, aside from
the socket functions, could you please tell me? Thank you.
Respectfully,
Chad