Re: Sockets
| From: | J Smith | Date: | Tue, 07 May 2002 22:04:56 +0000 |
| Subject: | Re: Sockets | ||
| References: | 1 2 3 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-83805@lists.php.net to get a copy of this message | ||
Now that I look at it, I'm noticing that the example is for the old sockets
API. See the attachment for a newer version that works with PHP 4.2.1RC2.
J
I wrote two seconds ago:
>
> I posted a sort-of example for a blocking socket server using
> socket_select(). It should get you on your way. Note that the example was
> written two months ago, so there may need to be a few changes. (One of
> which is the socket_select() call -- change the null arguments for the
> exceptfds and writefds to $null or something, as socket_select() now wants
> arrays, period, no nulls or constants.)
>
> Also note the lack of error checking. It is just an example, after all.
>
>
> http://marc.theaimsgroup.com/?l=php-dev&m=101561785202033&w=2
>
> J
>
Attachment: [text/x-c++src] sample.php
Attachment: [text/x-c++src] sample.php