Andrew Mather wrote:
i) a walkthrough of the exact steps + sample code to write an extension without requiring re-compilation of Php and without access to Php source code
maybe its time for a shameless plug one more time: http://pear.php.net/package/CodeGen_PECL/docs this approach will shield you from autoconf/make details as much as possible, it will also generate windows VS 6.0 .dsp project files, too
ii) as above but with access to Php source code
its not mentioned in the above docs, but compiling the generated extension code staticly into PHP just requires these simple steps: - place the generated code directory into PHPs ext/ directory - run buildconf (in the top level src directory) - if you've already built php from this source tree before do config.nice ...any-options-specific-to-your-extension else extract the configure string for the current php installation from "php -i" output, re-use this configure line and add your extensions options to it - make - optional: make test - make install (may require sudo)
iii) as above (either i or ii) but with instructions to allow the project to be initiated and compiled within the KDE development environment
i don't know / use Kdevelop, but i'm pretty sure that it allows to integrate standard unix projects based on configure/make ...
Resulting object (presumably .so) to be accessible in a distribution release of Apache/Php with only minor modification of a client's Apache/Php config settings.
using CodeGen_PECL you'll get a full self contained extension project, including a package.xml file suitable for automatic installation using the pear installer -- Hartmut Holzgraefe, Senior Support Engineer . MySQL AB, www.mysql.com -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php