Re: PHP with POSIX style message queues (mq_open() and friends)
| From: | Nathan Nobbe | Date: | Thu, 28 Oct 2010 21:27:05 +0000 |
| Subject: | Re: PHP with POSIX style message queues (mq_open() and friends) | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-309143@lists.php.net to get a copy of this message | ||
On Thu, Oct 28, 2010 at 12:52 PM, Jameson Williams <
jameson@jamesonwilliams.com> wrote:
> Hello,
>
> I need some way to interact with a POSIX message queue from PHP. I am
> already aware that the PHP library provides for manipulation of Sys V style
> queues (msg_get_queue(), etc.), but I cannot change the queue. I am hoping
> to accomplish this capability in a portable way, avoiding external
> dependencies if possible. So far, these are two solutions I have thought
> of:
>
> * Build a PHP extension which exposes these functions.
> * Build a set of wrapper binaries that can be called via shell_exec() or
> shell()
>
> For performance reasons, the second is nearly a non-option. Is, then, the
> first option the only way to go about this?
>
wouldn't calling the wrapper binaries via exec() be faster w/o the shell
overhead?
-nathan