Re: PHP and Threading
| From: | Leon Atkinson | Date: | Fri, 15 Nov 2002 18:15:59 +0000 |
| Subject: | Re: PHP and Threading | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-91112@lists.php.net to get a copy of this message | ||
> I was wondering, is PHP in future going to support threading? This would
be
> a very nice feature.
> I'am currently working on this project of mine, a FTP Server build in PHP
> which serve MySQL database records. It actually does work very nice, also
> multiple clients at the same time. It supports passive and active FTP.
> But my problem here is that the FTP server only can handle one file
transfer
> at a time. Threading would be the solution. Are there any plans
implementing
> it?
Take a look at the process control functions. (I only recently noticed them
myself).
http://www.php.net/manual/en/ref.pcntl.php
It sounds like you need to fork on an accepted connection.
Leon