Re: PHP extensions: Integrating C++ library into PHP
| From: | Antony Dovgal | Date: | Mon, 22 Sep 2008 07:26:17 +0000 |
| Subject: | Re: PHP extensions: Integrating C++ library into PHP | ||
| References: | 1 | Groups: | php.pecl.dev |
| Request: | Send a blank email to pecl-dev+get-5760@lists.php.net to get a copy of this message | ||
On 22.09.2008 11:15, Venkatesh R wrote:
> I am very novice person in PHP or web development. In my current
> project, I need to integrate some product specific APIs into already
> defined PHP scripts. The web server used in Apache. I have made a google
> search on how to integrate C++ APIs into PHP scripts. I could not find
> any well defined procedure. Please let me know if someone knows about
> this problem or have come across this condition before.
PECL/rar and PECL/llvm are extensions wrapping C++ code, you can use them as an example.
See http://cvs.php.net/pecl/rar and http://cvs.php.net/pecl/llvm
One of the most noticeable differences comparing to C extensions, is
usage of PHP_REQUIRE_CXX macro in config.m4, everything else should
be just the same.
--
Wbr,
Antony Dovgal