Building own .so extension/library

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
devork
Forum Contributor
Posts: 213
Joined: Fri Aug 08, 2003 6:44 am
Location: p(h) developer's network

Building own .so extension/library

Post by devork »

-I have knowledge of c/c++ and php,
-I want to make my own " .so " extension so that I may used it
dl("my_extension.so").
-From where do I start building ....what the first step.
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

taking a look at existing extensions is probably the best way to start.
the bz2-module is quite simple, then maybe tokenizer and then perhaps exif.
After you have some clue of what's going on there, read README.EXT_SKEL from the source code package. It describes an easy way to build an empty skeleton of an extension.
User avatar
devork
Forum Contributor
Posts: 213
Joined: Fri Aug 08, 2003 6:44 am
Location: p(h) developer's network

Post by devork »

ok thanx
but is there any handy tutorial, clearing the basics: :?:
Post Reply