Configuration and Linking
ALL OF THE SAMPLE CODE YOU'VE SEEN so far has been self-contained C versions of code you could have already written in PHP userspace. If the project you've got in mind is anything like most PHP extensions, however, you're going to want to link against at least one external library.