Building custom PHP extension (.so)

后端 未结 2 1972
一整个雨季
一整个雨季 2021-01-31 23:00

I own a high traffic website that does business in the USA and Canada. We have lots of servers but I want to make sure it\'s 100% available with no latency whatsoever.

I

相关标签:
2条回答
  • 2021-01-31 23:19

    Rather than try and build an extension in C you should consider compiling your source code using HipHop instead. This will be much simpiler and run your code pretty fast.

    0 讨论(0)
  • 2021-01-31 23:35

    I recommend to read this article:

    Extension Writing Part I: Introduction to PHP and Zend

    and here's how to compile:

    UNIX: Compiling PHP Extensions

    Build PHP extensions with SWIG

    (I recommend SWIG like mario said)

    Read more on Canadian zip codes at Postal codes in Canada since not all letters are being used.

    0 讨论(0)
提交回复
热议问题