<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <HTML ><HEAD ><TITLE >Source Discussion</TITLE ><META NAME="GENERATOR" CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK REL="HOME" TITLE="Manual PHP" HREF="index.html"><LINK REL="UP" TITLE="Zend API" HREF="zend.html"><LINK REL="PREVIOUS" TITLE="Troubleshooting" HREF="zend.troubleshooting.html"><LINK REL="NEXT" TITLE="Header File Inclusions" HREF="zend.structure.headers.html"><META HTTP-EQUIV="Content-type" CONTENT="text/html; charset=ISO-8859-2"></HEAD ><BODY CLASS="chapter" BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000FF" VLINK="#840084" ALINK="#0000FF" ><DIV CLASS="NAVHEADER" ><TABLE SUMMARY="Header navigation table" WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR ><TH COLSPAN="3" ALIGN="center" >Manual PHP</TH ></TR ><TR ><TD WIDTH="10%" ALIGN="left" VALIGN="bottom" ><A HREF="zend.troubleshooting.html" ACCESSKEY="P" >Înapoi</A ></TD ><TD WIDTH="80%" ALIGN="center" VALIGN="bottom" ></TD ><TD WIDTH="10%" ALIGN="right" VALIGN="bottom" ><A HREF="zend.structure.headers.html" ACCESSKEY="N" >Înainte</A ></TD ></TR ></TABLE ><HR ALIGN="LEFT" WIDTH="100%"></DIV ><DIV CLASS="chapter" ><H1 ><A NAME="zend.structure" >Cap. 33. Source Discussion</A ></H1 ><DIV CLASS="TOC" ><DL ><DT ><B >Cuprins</B ></DT ><DT ><A HREF="zend.structure.html#zend.structure.module" >Module Structure</A ></DT ><DT ><A HREF="zend.structure.headers.html" >Header File Inclusions</A ></DT ><DT ><A HREF="zend.structure.exporting-functions.html" >Declaring Exported Functions</A ></DT ><DT ><A HREF="zend.structure.function-block.html" >Declaration of the Zend Function Block</A ></DT ><DT ><A HREF="zend.structure.module-block.html" >Declaration of the Zend Module Block</A ></DT ><DT ><A HREF="zend.structure.get-module.html" >Creation of <B CLASS="function" >get_module()</B ></A ></DT ><DT ><A HREF="zend.structure.implementation.html" >Implementation of All Exported Functions</A ></DT ><DT ><A HREF="zend.structure.summary.html" >Summary</A ></DT ></DL ></DIV ><P > Now that you've got a safe build environment and you're able to include the modules into PHP files, it's time to discuss how everything works. </P ><DIV CLASS="section" ><H1 CLASS="section" ><A NAME="zend.structure.module" >Module Structure</A ></H1 ><P > All PHP modules follow a common structure: <P ></P ><UL ><LI ><P > Header file inclusions (to include all required macros, API definitions, etc.) </P ></LI ><LI ><P > C declaration of exported functions (required to declare the Zend function block) </P ></LI ><LI ><P >Declaration of the Zend function block</P ></LI ><LI ><P >Declaration of the Zend module block</P ></LI ><LI ><P >Implementation of <B CLASS="function" >get_module()</B ></P ></LI ><LI ><P >Implementation of all exported functions</P ></LI ></UL ></P ></DIV ></DIV ><DIV CLASS="NAVFOOTER" ><HR ALIGN="LEFT" WIDTH="100%"><TABLE SUMMARY="Footer navigation table" WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" ><A HREF="zend.troubleshooting.html" ACCESSKEY="P" >Înapoi</A ></TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="index.html" ACCESSKEY="H" >Acasã</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" ><A HREF="zend.structure.headers.html" ACCESSKEY="N" >Înainte</A ></TD ></TR ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" >Troubleshooting</TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="zend.html" ACCESSKEY="U" >Sus</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" >Header File Inclusions</TD ></TR ></TABLE ></DIV ></BODY ></HTML >