[PHP-DEV] PHP and Threading

2002-11-15 Thread Arjen Brouwer
Hi,

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?

Cheers,
Arjen


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DEV] PHP and Threading

2002-11-15 Thread Rasmus Lerdorf
Nope, that is unlikely to happen.  The way to do this correctly is with a
socket_select() anyway.

-Rasmus

On Thu, 14 Nov 2002, Arjen Brouwer wrote:

 Hi,

 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?

 Cheers,
 Arjen


 --
 PHP Development Mailing List http://www.php.net/
 To unsubscribe, visit: http://www.php.net/unsub.php



-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-DEV] PHP and threading?

2002-11-15 Thread Arjen Brouwer
Hi,

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. I thought of doing something with ticks. So threading would be a very nice 
feature! Are there plans implementing it?

Cheers,
Arjen



Re: [PHP-DEV] PHP and Threading

2002-11-15 Thread Leon Atkinson
 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



-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-DEV] PHP and Threading

2002-11-15 Thread Arjen Brouwer
Hi,

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?

Cheers,
Arjen