|
Posted by Michael Vilain on 11/28/05 13:38
In article <1133163671.187780.239280@o13g2000cwo.googlegroups.com>,
bjorn2k@hotmail.com wrote:
> Hi all,
>
> Is there a way to call functions written in C with PHP? A sort of JNI
> but than for PHP.
>
> greetz Bjorn
Since php isn't compiled, how would that work, specifically? There'd
have to be some facility to call shared libraries and initialize them
and it probably wouldn't be portable.
You can call programs and pass them parameters via system() or
passthru() or use the COM object on Windows boxes. But I think calling
C functions in php would require linking said functions into mod_php or
the php interpeter. Perl has been doing this for years with CPAN
modules. Haven't seen the equivalent in php. Most of the add-on code
in PEAR is php code.
--
DeeDee, don't press that button! DeeDee! NO! Dee...
Navigation:
[Reply to this message]
|