⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 install.windows.extensions.html

📁 php的帮助文档,涉及到PHP的案例和基本语法,以及实际应用内容
💻 HTML
📖 第 1 页 / 共 2 页
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html> <head>  <title>Installation of extensions on Windows</title>  <meta http-equiv="content-type" content="text/html; charset=UTF-8"> </head> <body><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="install.windows.html">Installation on Windows systems</a></div> <div class="next" style="text-align: right; float: right;"><a href="install.pecl.html">Installation of PECL extensions</a></div> <div class="up"><a href="install.windows.html">Installation on Windows systems</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div><hr /><div id="install.windows.extensions" class="sect1">    <h2 class="title">Installation of extensions on Windows</h2>    <p class="para">     After installing PHP and a web server on Windows, you will probably want to     install some extensions for added functionality. You can choose which     extensions you would like to load when PHP starts by modifying your     <var class="filename">php.ini</var>. You can also load a module dynamically in your script using     <a href="function.dl.html" class="function">dl()</a>.    </p>    <p class="para">     The DLLs for PHP extensions are prefixed with <i>php_</i>.    </p>    <p class="para">     Many extensions are <em class="emphasis">built into</em> the Windows version     of PHP. This means additional DLL files, and the      <a href="ini.core.html#ini.extension" class="link">extension</a> directive, are       <em class="emphasis">not</em> used to load these extensions. The Windows      <a href="install.windows.extensions.html#install.windows.extensions.overview" class="link">PHP Extensions</a>     table lists extensions that require, or used to require, additional PHP      DLL files. Here&#039;s a list of built in extensions:    </p>    <p class="para">     In PHP 4 (updated PHP 4.3.11):     <a href="ref.bc.html" class="link">BCMath</a>,     <a href="ref.calendar.html" class="link">Caledar</a>,     <a href="ref.com.html" class="link">COM</a>,     <a href="ref.ctype.html" class="link">Ctype</a>,     <a href="ref.ftp.html" class="link">FTP</a>,     <a href="ref.mysql.html" class="link">MySQL</a>,     <a href="ref.uodbc.html" class="link">ODBC</a>,     <a href="ref.overload.html" class="link">Overload</a>,     <a href="ref.pcre.html" class="link">PCRE</a>,     <a href="ref.session.html" class="link">Session</a>,     <a href="ref.tokenizer.html" class="link">Tokenizer</a>,     <a href="ref.wddx.html" class="link">WDDX</a>,     <a href="ref.xml.html" class="link">XML</a> and     <a href="ref.zlib.html" class="link">Zlib</a>    </p>    <p class="para">     In PHP 5 (updated PHP 5.0.4), the following changes exist. Built in:     <a href="book.dom.html" class="link">DOM</a>,     <a href="ref.libxml.html" class="link">LibXML</a>,     <a href="ref.iconv.html" class="link">Iconv</a>,     <a href="ref.simplexml.html" class="link">SimpleXML</a>,     <a href="ref.spl.html" class="link">SPL</a> and     <a href="ref.sqlite.html" class="link">SQLite</a>.     And the following are no longer built in:     <a href="ref.mysql.html" class="link">MySQL</a> and      <a href="ref.overload.html" class="link">Overload</a>.    </p>    <p class="para">     The default location PHP searches for extensions is     <var class="filename">C:\php4\extensions</var> in PHP 4 and     <var class="filename">C:\php5</var> in PHP 5. To change this     setting to reflect your setup of PHP edit your <var class="filename">php.ini</var> file:     <ul class="itemizedlist">      <li class="listitem">       <p class="para">        You will need to change the        <a href="ini.core.html#ini.extension-dir" class="link">extension_dir</a> setting to        point to the directory where your extensions lives, or where you have        placed your <var class="filename">php_*.dll</var> files. For example:        <div class="informalexample">         <div class="example-contents"><div class="cdata"><pre>extension_dir = C:\php\extensions</pre></div>         </div>        </div>       </p>      </li>     <li class="listitem">      <p class="para">       Enable the extension(s) in <var class="filename">php.ini</var> you want to use by uncommenting the       <i>extension=php_*.dll</i> lines in <var class="filename">php.ini</var>. This is done       by deleting the leading ; from the extension you want to load.        <div class="example">        <p><b>Example #1 Enable <a href="ref.bzip2.html" class="link">Bzip2</a> extension for PHP-Windows</b></p>         <div class="example-contents"><div class="cdata"><pre>// change the following line from ...;extension=php_bz2.dll// ... toextension=php_bz2.dll</pre></div>         </div>        </div>             </p>     </li>      <li class="listitem">       <p class="para">        Some of the extensions need extra DLLs to work. Couple of them can be        found in the distribution package, in the        <var class="filename">C:\php\dlls\</var> folder in PHP 4 or        in the main folder in PHP 5, but some, for example Oracle        (<var class="filename">php_oci8.dll</var>) require DLLs which are not bundled        with the distribution package. If you are installing PHP 4, copy the        bundled DLLs from <var class="filename">C:\php\dlls</var>        folder to the main <var class="filename">C:\php</var>        folder. Don&#039;t forget to include <var class="filename">C:\php</var> in the system        <var class="varname">PATH</var> (this process is explained in a separate <a href="faq.installation.html#faq.installation.addtopath" class="link">FAQ entry</a>).       </p>     </li>     <li class="listitem">      <p class="para">       Some of these DLLs are not bundled with the PHP distribution. See each       extensions documentation page for details. Also, read the manual        section titled <a href="install.pecl.html" class="link">Installation of PECL        extensions</a> for details on <acronym title="PHP Extension and Application Repository">PECL</acronym>. An        increasingly large number of PHP extensions are found in        <acronym title="PHP Extension and Application Repository">PECL</acronym>, and these extensions require a       <a href="install.pecl.downloads.html" class="link">separate download</a>.      </p>     </li>    </ul>   <blockquote><p><b class="note">Note</b>:     <span class="simpara">     If you are running a server module version of PHP     remember to restart your web server to reflect your changes to <var class="filename">php.ini</var>.    </span>   </p></blockquote>   </p>   <p class="para">    The following table describes some of the extensions available and required    additional dlls.       <table border="5">     <caption><b>PHP Extensions</b></caption>     <colgroup>      <thead valign="middle">       <tr valign="middle">        <th colspan="1">Extension</th>        <th colspan="1">Description</th>        <th colspan="1">Notes</th>       </tr>      </thead>      <tbody valign="middle" class="tbody">  <tr valign="middle">   <td colspan="1" rowspan="1" align="left">php_bz2.dll</td>   <td colspan="1" rowspan="1" align="left"><a href="ref.bzip2.html" class="link">bzip2</a> compression functions</td>   <td colspan="1" rowspan="1" align="left">None</td>  </tr>  <tr valign="middle">   <td colspan="1" rowspan="1" align="left">php_calendar.dll</td>   <td colspan="1" rowspan="1" align="left"><a href="ref.calendar.html" class="link">Calendar</a> conversion functions</td>   <td colspan="1" rowspan="1" align="left">Built in since PHP 4.0.3</td>  </tr>  <tr valign="middle">   <td colspan="1" rowspan="1" align="left">php_crack.dll</td>   <td colspan="1" rowspan="1" align="left"><a href="ref.crack.html" class="link">Crack</a> functions</td>   <td colspan="1" rowspan="1" align="left">None</td>  </tr>  <tr valign="middle">   <td colspan="1" rowspan="1" align="left">php_ctype.dll</td>   <td colspan="1" rowspan="1" align="left"><a href="ref.ctype.html" class="link">ctype</a> family functions</td>   <td colspan="1" rowspan="1" align="left">Built in since PHP 4.3.0</td>  </tr>  <tr valign="middle">   <td colspan="1" rowspan="1" align="left">php_curl.dll</td>   <td colspan="1" rowspan="1" align="left"><a href="ref.curl.html" class="link">CURL</a>, Client URL library functions</td>   <td colspan="1" rowspan="1" align="left">Requires: <var class="filename">libeay32.dll</var>,    <var class="filename">ssleay32.dll</var> (bundled)</td>  </tr>  <tr valign="middle">   <td colspan="1" rowspan="1" align="left">php_dba.dll</td>   <td colspan="1" rowspan="1" align="left"><a href="ref.dba.html" class="link">DBA</a>: DataBase (dbm-style)    Abstraction layer functions</td>   <td colspan="1" rowspan="1" align="left">None</td>  </tr>  <tr valign="middle">   <td colspan="1" rowspan="1" align="left">php_dbase.dll</td>   <td colspan="1" rowspan="1" align="left"><a href="ref.dbase.html" class="link">dBase</a> functions</td>   <td colspan="1" rowspan="1" align="left">None</td>  </tr>  <tr valign="middle">   <td colspan="1" rowspan="1" align="left">php_dbx.dll</td>   <td colspan="1" rowspan="1" align="left"><a href="ref.dbx.html" class="link">dbx</a> functions</td>   <td class="empty">&nbsp;</td>  </tr>  <tr valign="middle">   <td colspan="1" rowspan="1" align="left">php_domxml.dll</td>   <td colspan="1" rowspan="1" align="left"><a href="ref.domxml.html" class="link">DOM XML</a> functions</td>   <td colspan="1" rowspan="1" align="left">    PHP &lt;= 4.2.0 requires: <var class="filename">libxml2.dll</var> (bundled)    PHP &gt;= 4.3.0 requires: <var class="filename">iconv.dll</var> (bundled)   </td>  </tr>  <tr valign="middle">   <td colspan="1" rowspan="1" align="left">php_dotnet.dll</td>   <td colspan="1" rowspan="1" align="left"><a href="ref.dotnet.html" class="link">.NET</a> functions</td>   <td colspan="1" rowspan="1" align="left">PHP &lt;= 4.1.1</td>  </tr>  <tr valign="middle">   <td colspan="1" rowspan="1" align="left">php_exif.dll</td>   <td colspan="1" rowspan="1" align="left"><a href="ref.exif.html" class="link">EXIF</a> functions</td>   <td colspan="1" rowspan="1" align="left">    <a href="ref.mbstring.html" class="link">php_mbstring.dll</a>. And,     <var class="filename">php_exif.dll</var> must be loaded <i>after</i>     <var class="filename">php_mbstring.dll</var> in <var class="filename">php.ini</var>.   </td>  </tr>  <tr valign="middle">   <td colspan="1" rowspan="1" align="left">php_fbsql.dll</td>   <td colspan="1" rowspan="1" align="left"><a href="ref.fbsql.html" class="link">FrontBase</a> functions</td>   <td colspan="1" rowspan="1" align="left">PHP &lt;= 4.2.0</td>  </tr>  <tr valign="middle">   <td colspan="1" rowspan="1" align="left">php_fdf.dll</td>   <td colspan="1" rowspan="1" align="left"><a href="ref.fdf.html" class="link">FDF</a>: Forms Data Format functions.</td>   <td colspan="1" rowspan="1" align="left">Requires: <var class="filename">fdftk.dll</var> (bundled)</td>  </tr>  <tr valign="middle">   <td colspan="1" rowspan="1" align="left">php_filepro.dll</td>   <td colspan="1" rowspan="1" align="left"><a href="ref.filepro.html" class="link">filePro</a> functions</td>   <td colspan="1" rowspan="1" align="left">Read-only access</td>  </tr>  <tr valign="middle">   <td colspan="1" rowspan="1" align="left">php_ftp.dll</td>   <td colspan="1" rowspan="1" align="left"><a href="ref.ftp.html" class="link">FTP</a> functions</td>   <td colspan="1" rowspan="1" align="left">Built-in since PHP 4.0.3</td>  </tr>  <tr valign="middle">   <td colspan="1" rowspan="1" align="left">php_gd.dll</td>   <td colspan="1" rowspan="1" align="left"><a href="ref.image.html" class="link">GD</a> library image functions</td>   <td colspan="1" rowspan="1" align="left">    Removed in PHP 4.3.2.  Also note that truecolor functions are not    available in GD1, instead, use <var class="filename">php_gd2.dll</var>.   </td>   </tr>  <tr valign="middle">

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -