<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ftp.setup.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'zh',
  ),
  'this' => 
  array (
    0 => 'ftp.installation.php',
    1 => '安装',
    2 => '安装',
  ),
  'up' => 
  array (
    0 => 'ftp.setup.php',
    1 => '安装/配置',
  ),
  'prev' => 
  array (
    0 => 'ftp.setup.php',
    1 => '安装/配置',
  ),
  'next' => 
  array (
    0 => 'ftp.resources.php',
    1 => '资源类型',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'zh',
    'path' => 'reference/ftp/configure.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="ftp.installation" class="section">
 <h2 class="title">安装</h2>
 <p class="para">
  为了在 PHP 配置中使用 FTP 函数，应该在安装 PHP 时添加
  <strong class="option configure">--enable-ftp</strong> 选项。
 </p>
 <p class="para">
  在 Autotools 中，当使用 <code class="literal">openssl</code> 扩展一起构建时，FTP SSL
  支持会隐式启用，使用 <strong class="option configure">--with-openssl</strong>
  配置选项。当不使用 <code class="literal">openssl</code> 扩展构建时，可以使用
  <strong class="option configure">--with-ftp-ssl</strong> Autotools 配置选项显式启用
  FTP SSL 支持。
 </p>
 <p class="para">
  在 Windows 上，此扩展始终编译为共享扩展，因此必须在 <var class="filename">php.ini</var> 中启用。
 </p>

 <div class="simplesect">
  <h3 class="title">更新日志</h3>
  <p class="para">
   <table class="doctable informaltable">
    
     <thead>
      <tr>
       <th>版本</th>
       <th>说明</th>
      </tr>

     </thead>

     <tbody class="tbody">
      <tr>
       <td>8.4.0</td>
       <td>
        从 Autotools 配置选项 <strong class="option configure">--with-openssl-dir</strong>
        中移除，改为使用新的
        <strong class="option configure">--with-ftp-ssl</strong> 显式启用 FTP SSL 支持，
        当不使用 <code class="literal">openssl</code> 扩展构建时。
       </td>
      </tr>

     </tbody>
    
   </table>

  </p>
 </div>
</div><?php manual_footer($setup); ?>