1

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?

Community
  • 1
  • 1
Mohammadreza
  • 31
  • 1
  • 2

1 Answers1

1

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/

Louis-Philippe Huberdeau
  • 5,341
  • 1
  • 19
  • 22