我如何可以调用函数从PHP C程序? [英] How can i call function in a C program from php?
本文介绍了我如何可以调用函数从PHP C程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
可能重复:结果
调用C / C ++从PHP 库函数
我在C程序的一些功能。我想从PHP调用此函数。我怎样才能做到这一点?
I have some function in C program. I want call this functions from PHP. How can I do this?
推荐答案
这是通过写一个PHP扩展做得相当经常在PHP。
This is done quite often in PHP through writing a PHP extensions.
如果你知道一些C,它不应该太难写一个单一功能的绑定。
If you know some C, it should not be too hard to write a binding for a single function.
这篇文章是很老,但它仍然应该是最新的简单功能。
The article is quite old, but it should still be up to date on the simple functions.
的http://devzone.zend.com/303/extension-writing-part-i-introduction-to-php-and-zend/
这篇关于我如何可以调用函数从PHP C程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文