Posted by Toby A Inkster on 05/01/07 15:35
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.
--
Toby A Inkster BSc (Hons) ARCS
http://tobyinkster.co.uk/
Geek of ~ HTML/SQL/Perl/PHP/Python/Apache/Linux
Navigation:
[Reply to this message]
|