Hi. I have the following questions regarding writing a PHP extension.
You don't have to answer all questions. Please answer everything you
can. I'd really appreciate it.
1. What is the most common version that's used out there? If I wrote
an extension for PHP 4, would it work for PHP 5? Also, is PHP 3 very
different?
2. My extension will need to use an external C++ (not C) library.
That should be all right, right?
3. When/where/how do I specify whether or not I want my extension to
be built-in or external? I know (actually, more like, think) that it
is in config.m4 but I don't know exactly how to specify it?
4. This is probably more a C/C++ question, when/where/how do I specify
whether or not my library is to be shared/dynamic or static? Also, is
that decision relevant only for external extensions?
Thanks! That's all for now (I'm sure more will come). I'd really
appreciate any help.
Ever
You don't have to answer all questions. Please answer everything you
can. I'd really appreciate it.
1. What is the most common version that's used out there? If I wrote
an extension for PHP 4, would it work for PHP 5? Also, is PHP 3 very
different?
2. My extension will need to use an external C++ (not C) library.
That should be all right, right?
3. When/where/how do I specify whether or not I want my extension to
be built-in or external? I know (actually, more like, think) that it
is in config.m4 but I don't know exactly how to specify it?
4. This is probably more a C/C++ question, when/where/how do I specify
whether or not my library is to be shared/dynamic or static? Also, is
that decision relevant only for external extensions?
Thanks! That's all for now (I'm sure more will come). I'd really
appreciate any help.
Ever
Comment