<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <title>Installation</title> </head> <body><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="zip.requirements.html">Requirements</a></div> <div class="next" style="text-align: right; float: right;"><a href="zip.configuration.html">Runtime Configuration</a></div> <div class="up"><a href="zip.setup.html">Installing/Configuring</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div><hr /><div id="zip.installation" class="section"> <h2 class="title">Installation</h2> <div class="section" id="zip.old.installation"> <h2 class="title">PHP 4</h2> <blockquote class="note"><p><strong class="note">Note</strong>: <p class="para"> Zip support before PHP 4.1.0 is experimental. </p> </p></blockquote> <div class="warning"><strong class="warning">Warning</strong> <p class="para"> Because the PHP 4 zip extension is unmaintained we recommend that the PECL extension is used rather than the bundled one. </p> </div> <div class="section" id="zip.installation.old.linux"> <h2 class="title">Linux systems</h2> <p class="para"> In order to use these functions you must compile PHP with zip support by using the <strong class="option configure">--with-zip[=DIR]</strong> configure option, where [DIR] is the prefix of the <a href="http://zziplib.sourceforge.net/" class="link external">» ZZIPlib</a> library install. </p> </div> <div class="section" id="zip.installation.old.windows"> <h2 class="title">Windows</h2> <p class="para"> Windows users need to enable <var class="filename">php_zip.dll</var> inside of <var class="filename">php.ini</var> in order to use these functions. </p> </div> </div> <div class="section" id="zip.installation.new"> <h2 class="title">PHP 5.2.0 and later</h2> <div class="section" id="zip.installation.new.linux"> <h2 class="title">Linux systems</h2> <p class="para"> In order to use these functions you must compile PHP with zip support by using the <strong class="option configure">--enable-zip</strong> configure option. </p> </div> <div class="section" id="zip.installation.new.windows"> <h2 class="title">Windows</h2> <p class="para"> Windows users need to enable <var class="filename">php_zip.dll</var> inside of <var class="filename">php.ini</var> in order to use these functions. </p> </div> </div> <div class="section" id="zip.pecl.installation"> <h2 class="title">Installation via PECL</h2> <p class="para"> Information for installing this PECL extension may be found in the manual chapter titled <a href="install.pecl.html" class="link">Installation of PECL extensions</a>. Additional information such as new releases, downloads, source files, maintainer information, and a CHANGELOG, can be located here: <a href="http://pecl.php.net/package/zip" class="link external">» http://pecl.php.net/package/zip</a>. </p> <p class="para"> A <acronym title="Dynamic Link Library">DLL</acronym> for this <acronym title="PHP Extension and Application Repository">PECL</acronym> extension is currently unavailable. See also the <a href="install.windows.building.html" class="link">building on Windows</a> section. </p> <p class="para"> In PHP 4 this <acronym title="Dynamic Link Library">DLL</acronym> resides in the <var class="filename">extensions/</var> directory within the PHP Windows binaries download. </p> </div> </div><hr /><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="zip.requirements.html">Requirements</a></div> <div class="next" style="text-align: right; float: right;"><a href="zip.configuration.html">Runtime Configuration</a></div> <div class="up"><a href="zip.setup.html">Installing/Configuring</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div></body></html>