Re: PHP and Threads
| From: | J Smith | Date: | Wed, 17 Apr 2002 14:09:14 +0000 |
| Subject: | Re: PHP and Threads | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-82903@lists.php.net to get a copy of this message | ||
You can simulate threading using the socket extension's socket_select()
function by using it as a multiplexor. I've developed a similar system for
work in a search engine. (Which, coincidentally, uses XML, too.)
J
Dan Hardiker wrote:
> Hi,
>
> Im currently looking at different peices of software for writing a socket
> server. This will need to be able to handle multiple connections coming in
> independatly. From my experiance, this is best handled with threading.
>
> Would I be right in the assessment that PHP cannot cope with threading
> sockets (or any multi-threading for that matter) - and are there any plans
> to add this layer of functionality into PHP at any stage?
>
> [My aim is to create a socket server running on a port which can take
> connections from clients (communicating in XML) running a messaging system
> between them (either broadcast style to all users, or from user A to users
> B, C and D]
>
> Thank you for your time.
>
>