<HTML ><HEAD ><TITLE >Built-in Modules</TITLE ><META NAME="GENERATOR" CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK REL="HOME" TITLE="PHP Manual" HREF="index.html"><LINK REL="UP" TITLE="Extension Possibilities" HREF="zend.possibilities.html"><LINK REL="PREVIOUS" TITLE="Extension Possibilities" HREF="zend.possibilities.html"><LINK REL="NEXT" TITLE="The Zend Engine" HREF="zend.possibilities.engine.html"><META HTTP-EQUIV="Content-type" CONTENT="text/html; charset=ISO-8859-1"></HEAD ><BODY CLASS="section" 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" >PHP Manual</TH ></TR ><TR ><TD WIDTH="10%" ALIGN="left" VALIGN="bottom" ><A HREF="zend.possibilities.html" ACCESSKEY="P" >Prev</A ></TD ><TD WIDTH="80%" ALIGN="center" VALIGN="bottom" >Chapter 25. Extension Possibilities</TD ><TD WIDTH="10%" ALIGN="right" VALIGN="bottom" ><A HREF="zend.possibilities.engine.html" ACCESSKEY="N" >Next</A ></TD ></TR ></TABLE ><HR ALIGN="LEFT" WIDTH="100%"></DIV ><DIV CLASS="section" ><H1 CLASS="section" ><A NAME="zend.possibilities.builtin" ></A >Built-in Modules</H1 ><P > Built-in modules are compiled directly into PHP and carried around with every PHP process; their functionality is instantly available to every script that's being run. Like external modules, built-in modules have advantages and disadvantages, as described in the following table: <DIV CLASS="informaltable" ><A NAME="AEN99513" ></A ><P ></P ><TABLE BORDER="1" CLASS="CALSTABLE" ><TBODY ><TR ><TD WIDTH="50%" ALIGN="LEFT" VALIGN="MIDDLE" >Advantages</TD ><TD WIDTH="50%" ALIGN="LEFT" VALIGN="MIDDLE" >Disadvantages</TD ></TR ><TR ><TD WIDTH="50%" ALIGN="LEFT" VALIGN="MIDDLE" > No need to load the module specifically; the functionality is instantly available. </TD ><TD WIDTH="50%" ALIGN="LEFT" VALIGN="MIDDLE" > Changes to built-in modules require recompiling of PHP. </TD ></TR ><TR ><TD WIDTH="50%" ALIGN="LEFT" VALIGN="MIDDLE" > No external files clutter up the disk; everything resides in the PHP binary. </TD ><TD WIDTH="50%" ALIGN="LEFT" VALIGN="MIDDLE" > The PHP binary grows and consumes more memory. </TD ></TR ></TBODY ></TABLE ><P ></P ></DIV > Built-in modules are best when you have a solid library of functions that remains relatively unchanged, requires better than poor-to-average performance, or is used frequently by many scripts on your site. The need to recompile PHP is quickly compensated by the benefit in speed and ease of use. However, built-in modules are not ideal when rapid development of small additions is required. </P ></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.possibilities.html" ACCESSKEY="P" >Prev</A ></TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="index.html" ACCESSKEY="H" >Home</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" ><A HREF="zend.possibilities.engine.html" ACCESSKEY="N" >Next</A ></TD ></TR ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" >Extension Possibilities</TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="zend.possibilities.html" ACCESSKEY="U" >Up</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" >The Zend Engine</TD ></TR ></TABLE ></DIV ></BODY ></HTML >