This chapter is intended as a complete tour of the extensions
provided with the PHP distribution, but not as a definitive reference
to the functions provided by those extensions. Additional
documentation for these extensions is available from the PHP web site
http://www.php.net.
B.1. Optional Extensions Listing
The extensions are listed in this appendix in alphabetical order by
extension name. Where necessary, the appropriate PHP compile-time
directive is given for adding the extension to your PHP installation.
Due to the fluid nature of the Web, locations are not given for
downloading third-party libraries necessary to run the extensions;
check the PHP web site for current download locations.
clibpdf provides functions to create
documents in Adobe's PDF format on the fly. Unlike
the free pdflib (see pdflib
later in this appendix), clibpdf can create PDF files wholly in
memory, without the use of temporary files, and can edit arbitrary
pages within a multi-page document. See Chapter 10
for a detailed discussion of creating PDF documents.
To use the clibpdf functions, you must install clibpdf and compile
PHP with the --with-clibpdf directive.
The
CURL
functions provide access to libcurl, a library that manages
connections to servers via a number of different Internet protocols.
CURL supports the HTTP, HTTPS, FTP, gopher, telnet, dict, file, and
LDAP protocols; HTTPS certificates; HTTP POST, HTTP PUT, and FTP
uploading; HTTP form-based uploading; proxies; cookies; and user
authentication.
To use CURL functions, you must install CURL, Version 7.0.2-beta or
later, and compile PHP with the
--with-curl[=DIR]
directive.
The
ODBC extension allows you to access
databases that support ODBC. In addition, the extension supports
connecting to several other databases that have adopted the semantics
of ODBC.
To use ODBC, you must install the client libraries appropriate to the
database you're trying to access and compile PHP
with one of the following directives:
--with-unixodbc[=DIR]
for the Unix ODBC library,
--with-openlink[=DIR]
for OpenLink ODBC support,
--with-dbmaker[=DIR]
for DBMaker support,
--with-adabas[=DIR]
for Adabas D support,
--with-sapdb[=DIR]
for SAP DB support,
--with-solid[=DIR]
for Solid support,
--with-ibm-db2[=DIR]
for IBM DB2 support,
--with-empress[=DIR]
for Empress support,
--with-velocis[=DIR]
for Velocis support,
--with-custom-odbc[=DIR]
for custom ODBC-driver support,
--with-iodbc[=DIR]
for iODBC support, or
--with-esoob[=DIR]
for Easysoft OOB support.
pdflib
provides support for creating PDF documents on the fly. See Chapter 10 for a detailed discussion of creating PDF
documents.
To enable this extension, you must install pdflib, the JPEG library,
and the TIFF library and compile PHP with the
--with-pdflib[=DIR]
option. You will also need to specify directories for the zlib
library using
--with-zlib-dir[=DIR],
the JPEG library using
--with-jpeg-dir[=DIR],
the PNG library using
--with-png-dir[=DIR],
and the TIFF library using
--with-tiff-dir[=DIR].
These functions are intended for work with
WDDX, an XML-based
standard for exchanging data between applications. See Chapter 11 for a detailed discussion of using XML in PHP.
The WDDX library is not enabled by default. To use it, you must
install the expat library and compile PHP with the
--with-xml[=DIR]
and --enable-wddx directives.