Re: Sockets as a module or a separate PHP CLI instance?
| From: | Oliver Block | Date: | Wed, 02 May 2007 12:36:05 +0000 |
| Subject: | Re: Sockets as a module or a separate PHP CLI instance? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-254227@lists.php.net to get a copy of this message | ||
Am Mittwoch, 2. Mai 2007 13:29 schrieb list3@truswan.com:
> I need to do some socket work on a production machine that is constantly
> busy so I don't dare re-compile php. Anybody know if it's possible to load
> the socket functions dynamically, maybe as if they were in a module?
It's possible if it's possible to compile it as shared object. It is, as far
as I know.
--with-socket=shared
There might be some obstacles with threaded servers. I am not sure.
> Alternatively, would it be possible to compile PHP without apache and with
> sockets for command line use only?
--enable-cli
Regards,
Oliver