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”
Tag Archives: PHP extension
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”
PHP Extension Wiki
I started a wiki on this site (http://www.kchodorow.com/php) to write down all the stuff I learn about writiing PHP extensions. If anyone else has experience with them, feel free to add or edit articles. Some basics: a PHP extension is written in C. In fact, PHP itself is written in C, so there’s a lotContinue reading “PHP Extension Wiki”