php-windows Digest 14 Mar 2004 12:17:42 -0000 Issue 2164
Topics (messages 23130 through 23133):
Re: servers in php
23130 by: Robert Twitty
23131 by: DvDmanDT
23132 by: Svensson, B.A.T. (HKG)
23133 by: Comex
Administrivia:
To subscribe to the digest, e-mail:
[EMAIL PROTECTED]
To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]
To post to the list, e-mail:
[EMAIL PROTECTED]
----------------------------------------------------------------------
--- Begin Message ---
Take a look at the socket functions, with special attention to
socket_listen() and socket_accept(). AFAIK, this may be a bit beyond the
scope of PHP on windows. Even if you successfully call the program
from itself, you will not be able to pass the connection to the cloned
program. Your server may only be able to serve a single client. New
clients would then be back logged. This may not be a problem for very
short service times and low traffic.
-- bob
On Sat, 13 Mar 2004, Comex wrote:
> I was wondering how to go about making a server in PHP that would accept
> multiple connections..in windows, so I can't use forks. I'd need to call
> the program from itself but I don't know how the listening works.
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>
--- End Message ---
--- Begin Message ---
I was thinking about this a while ago accutually.. It does seem like you can
use ticks to get a multithreaded server, with multiple connections, but I
can't say for sure.. :p
--
// DvDmanDT
MSN: dvdmandt?hotmail.com
Mail: dvdmandt?telia.com
"Comex" <[EMAIL PROTECTED]> skrev i meddelandet
news:[EMAIL PROTECTED]
I was wondering how to go about making a server in PHP that would accept
multiple connections..in windows, so I can't use forks. I'd need to call
the program from itself but I don't know how the listening works.
--- End Message ---
--- Begin Message ---
And if you don't use fork(), how did you plan to handle the
port situation, once a process has connected to the server?
-----Original Message-----
From: Comex
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: 14-3-2004 1:06
Subject: [PHP-WIN] servers in php
I was wondering how to go about making a server in PHP that would accept
multiple connections..in windows, so I can't use forks. I'd need to
call the program from itself but I don't know how the listening works.
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
And if you don't use fork(), how did you plan to handle the
port situation, once a process has connected to the server?
I don't know, which is why I asked.
--- End Message ---