Speaking the Windows Dialect

Table of contents:

Summary

If your extension will be built under unknown or uncontrolled environments, it will be crucial to make it intelligent enough to adapt to those strange surroundings. Using the powerful scripting capabilities offered by PHP's UNIX and Windows build systems, you should be able to detect trouble and lead that unknown administrator to a solution before she needs to call for help.

Now that you've got a foundation in building up extensions from scratch and interfacing with the PHP api, you're ready to take the drudgery out of extension development by using some of the handy tools developed for PHP over the years to make prototyping new extensions quick and relatively painless.


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