|
Posted by Benjamin on 05/21/07 02:27
On May 20, 8:55 pm, Jerry Stuckle <jstuck...@attglobal.net> wrote:
> Graham Weldon wrote:
> > Has anyone got any information or links for some tutorials on threading
> > with PHP?
> > I was looking at running a socket listener, and launch off new threads,
> > and co-ordinate as requests come in.
>
> > Cheers,
> > Graham
>
> Graham,
>
> The PHP cli doesn't support multithreading. You can get multiple
> threads if you're running as an Apache or IIS extension and the
> webserver is running multiple threads, but that's all.
That's not completely true. You can the Process Control Functions
(http://www.php.net/manual/en/ref.pcntl.php). However, they're only
avaible on Unix like systems.
>
> --
> ==================
> Remove the "x" from my email address
> Jerry Stuckle
> JDS Computer Training Corp.
> jstuck...@attglobal.net
> ==================
[Back to original message]
|