PhpRiot
News Archive
PhpRiot Newsletter
Your Email Address:

More information

Kristina Chodorow's Blog: Writing a PHP Extension (Four Part Series)

Note: This article was originally published at PHPDeveloper on 19 August 2011.
PHPDeveloper

Kristina Chodorow has posted a four part series of articles to her blog that shares some of her experiences in developing an extension for PHP (on C/C++). It walks you through the entire process - from the basic "hello world" out to working with more complex data structures.

A PHP extension allows you to connect almost any C/C++ code you want to PHP. This is a 4-part tutorial on how to write an extension. [...] Almost all of the code examples in this tutorial are available on Github.

The parts of the series cover:

Each step comes with some good explanation, code samples and some advice on common tasks and pitfalls along the way.