Re: socket multithreading problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Ümit CAN wrote:
Hi All;
I use PHP socket programming and I wish multithreading operation of the socket .
When I have many requests on this  socket , before the  first one request is anwered , the second request  is not aswered  till the first one is finished.
How can both requests work together without waiting each other ?

1: you can't multi thread PHP
2: you can 'fork' PHP processes using the pcntl_ functions to achieve what you are looking for by making a cli based php deamon.

Best,

Nathan

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



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux