|
Posted by Chung Leong on 10/18/05 16:47
Iván Sánchez Ortega wrote:
> 4) The threaded way
>
> Use pcntl_fork() to create a child process (or, if posible, a thread) for
> each site request. As all the children share the same stdout file
> descriptor, you should be able to echo() text to the browser asyncronously
> (or, you could use popen() or some other pipe mechanism to centrlize the
> output).
Probably easier to just poll a bunch of non-blocking streams.
Navigation:
[Reply to this message]
|