Creating a Module

php.internals

Chris Cranford

21 years ago
I'm trying to create my first module and I am having a bit of trouble. Is there any example modules available I could review to get a better understanding of how to write them? Thanks

Sara Golemon

21 years ago
> I'm trying to create my first module and I am having a bit of trouble. Is > there any example modules available I could review to get a better > understanding of how to write them? >
Most any directory under ext/ in the source tree are, in actuality, standalone modules (a few exceptions, though only technically). Or you could grab any package from PECL ( http://pecl.php.net ). Or you could run ext_skel (from the ext/ directory) and generate a skeleton replete with comments describing what to do with the included pieces. -Sara

Unnamed Person

21 years ago
I found the book Advanced PHP Programming to be quite helpful when I started working on the zeroconf extension. There's a number of chapters dealing with extensions and Zend engine internals. --- Chris Cranford <chris.cranford@tkdsoftware.com> wrote:
> I'm trying to create my first module and I am having > a bit of trouble. Is > there any example modules available I could review > to get a better > understanding of how to write them? > > Thanks > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > >
=====