1

Minutes back I read something like "it should be possible to link the C++ library as a php extension".

  • Is it really possible?
  • if yes, which is better, newly written extension or a linked library (efforts and performance wise).
  • Also can you guys point me to some How-to or related doc.
hakre
  • 193,403
  • 52
  • 435
  • 836
Uday Sawant
  • 5,748
  • 3
  • 32
  • 45
  • possible duplicate of [How to make a PHP extension](http://stackoverflow.com/questions/3632160/how-to-make-a-php-extension) – hakre Jan 12 '12 at 12:08

2 Answers2

0

The following link will probably answer all your questions. Basically yes, it's possible to link C++ lib as PHP extension.

N.B.
  • 13,688
  • 3
  • 45
  • 55
0

Yes it is, check these out:

http://devzone.zend.com/1435/wrapping-c-classes-in-a-php-extension/

How to start writing a PHP5 extension in C++

Community
  • 1
  • 1
Jeremy Harris
  • 24,318
  • 13
  • 79
  • 133