array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'zh', ), 'this' => array ( 0 => 'ftp.installation.php', 1 => '安装', ), 'up' => array ( 0 => 'ftp.setup.php', 1 => '安装/配置', ), 'prev' => array ( 0 => 'ftp.requirements.php', 1 => '需求', ), 'next' => array ( 0 => 'ftp.configuration.php', 1 => '运行时配置', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'zh', 'path' => 'reference/ftp/configure.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
为了在 PHP 配置中使用 FTP 函数,应该在安装 PHP 时添加 --enable-ftp 选项。
在 Windows 上,此扩展始终编译为共享扩展,因此必须在 php.ini 中启用。