Extending and Embedding at Once

Table of contents:


In this chapter you took the simple embedding examples from the last chapter and expanded them to the point where you can handle dropping PHP into most any nonthreaded application. Now that you've got the basics of extending, embedding, and working with zvals, class entries, resources, and hash tables, you're ready to apply that to a real project.

In the remaining appendices, you'll find a catalog of the many API functions exported by PHP, Zend, and other extensions. You'll see a collection of common use code snippets and a directory of just a few of the hundreds of open source PECL projects that will serve as reference for your future 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

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

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