How to use C static library (.a file) in PHP

3.2k Views Asked by At

In one of our project we are specifically and compulsorily required to create C++ static libraries (.a files) , and then use them in PHP (web Application). We are successfully able to create .a files, now wondering if anyone can help us in identifying how to use them in PHP. The " .a file " will accept some input data, and will return some output that can be used in the web application.

1

There are 1 best solutions below

5
On BEST ANSWER

Here's a nice tutorial on how to create PHP extensions. I used that in the past and it works well.

https://web.archive.org/web/20150408110240/https://devzone.zend.com/303/extension-writing-part-i-introduction-to-php-and-zend