Reply to Re: Calling C functions in PHP

Your name:

Reply:


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...

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация