Possible Duplicate:
Calling C/C++ library function from PHP
I have some function in C program. I want call this functions from PHP. How can I do this?
Possible Duplicate:
Calling C/C++ library function from PHP
I have some function in C program. I want call this functions from PHP. How can I do this?
This is done quite often in PHP through writing a PHP extensions.
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/