Posted by David T. Ashley on 05/01/07 16:32
"Toby A Inkster" <usenet200703@tobyinkster.co.uk> wrote in message
news:fb3kg4-7eq.ln1@ophelia.g5n.co.uk...
> David T. Ashley wrote:
>
>> I am not able to call a shared library directly from PHP. Instead, I
>> have
>> to write a C program that is called (i.e. exec'd or similar) from PHP and
>> which uses the shared library.
>
> Have you considered writing an extension to PHP? This is a compiled (C)
> shared object that could interface between your PHP script and the library
> in question.
>
> I've not written one before, but I'm told they're easier than you'd
> expect.
This is an interesting idea. The only potential barrier in my case is that
I run Red Hat Enterprise Linux and I receive my PHP as packages from Red Hat
(which is great for me).
Does this involve recompiling PHP? Or does it involve some external work
that links to PHP? In other words, could I continue to use the pre-built
PHP packages from Red Hat?
Thanks.
[Back to original message]
|