PHP Extensions Made Eldrich: Classes

This is the final section of a 4-part series on writing PHP extensions. Setting Up PHP – compiling PHP for extension development Hello, world! – your first extension Working with the API – the PHP C API Classes – creating PHP objects in C Objects branch: oop This section will cover creating objects. Objects areContinue reading “PHP Extensions Made Eldrich: Classes”

PHP Extensions Made Eldrich: PHP Variables

This is section 3 of a 4-part introduction to PHP extensions: Setting Up PHP – compiling PHP for extension development Hello, world! – your first extension Working with the API – the PHP C API Classes – creating PHP objects in C This section is, unfortunately, longer than all of the other sections combined. TheContinue reading “PHP Extensions Made Eldrich: PHP Variables”

PHP Extensions Made Eldrich: Hello, World!

This is part 2 of a 4-part tutorial on writing PHP extensions: Setting Up PHP – compiling PHP for extension development Hello, world! – your first extension Working with the API – the PHP C API Classes – creating PHP objects in C First we need to think of a name for our extension. I’veContinue reading “PHP Extensions Made Eldrich: Hello, World!”

PHP Extensions Made Eldrich: Installing PHP

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: Setting Up PHP – compiling PHP for extension development Hello, world! – your first extension Working with the API – the PHP C API Classes – creating PHP objectsContinue reading “PHP Extensions Made Eldrich: Installing PHP”