Logo name

Practical PHP Programming:Writing extensions

From IpbWiki

  • Currently1.00/5
Jump to: navigation, search

Of all the chapters in this book, this is the most likely to be out of date. If you experience problems and are serious about creating your own PHP extension, I suggest you pick up a copy of Sara Golemon's book "Extending and Embedding PHP."

PHP is an incredibly rich language, as I hope you have come to see by reading this far – there are extensions available to perform all sorts of popular operations with external libraries that really help add power to your script without much effort.

So, why would anyone want to write their own extension? We'll be answering that question in this chapter, as well as designing and producing from scratch a new extension for PHP. Note that this entire chapter requires you have a compiler to hand so that you can compile your extension. You need to be able to compile PHP – usually this requires a Unix operating system, but if you have Windows and a Windows compiler, or Cygwin, that will do also. Otherwise, while the information here might be interesting, you will not be able to make use of it unless you can compile PHP.

Topics covered in this chapter:

  • When to write a custom extension
  • How to design, create, and test your extension

Chapter contents


Next: Practical_PHP_Programming:Why write your own extension?

This page was last modified on 21 October 2006, at 17:38.  This page has been accessed 1,845 times.  Content is available under GNU Free Documentation License 1.2Disclaimers