Extension APIs


The PHP Core and its library of extensions contains other, less commonly used or less frequently available API calls than those listed here. If you need a bit of functionality that's already being performed by a core function or some extension, refer to its header files and see if it's not also exported to internals-space for use by extensions or embed wrappers like your project.

Appendix D, "Additional Resources," will highlight just these types of "How'd they do that?" approaches to learning by example. First though, you'll take a look at a set of boiler plate templates for doing the most common tasks that you can freely modify and use in your own projects.

The PHP Life Cycle

Variables from the Inside Out

Memory Management

Setting Up a Build Environment

Your First Extension

Returning Values

Accepting Parameters

Working with Arrays and HashTables

The Resource Data Type

PHP4 Objects

PHP5 Objects

Startup, Shutdown, and a Few Points in Between

INI Settings

Accessing Streams

Implementing Streams

Diverting the Stream

Configuration and Linking

Extension Generators

Setting Up a Host Environment

Advanced Embedding

Appendix A. A Zend API Reference

Appendix B. PHPAPI

Appendix C. Extending and Embedding Cookbook

Appendix D. Additional Resources

show all menu

Extending and Embedding PHP
Extending and Embedding PHP
ISBN: 067232704X
EAN: 2147483647
Year: 2007
Pages: 175
Authors: Sara Golemon
Similar book on Amazon

Flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net