Deprecated: Optional parameter $keys declared before required parameter $cms_id is implicitly treated as a required parameter in /home/www/dev/work/class/blog/CmsKey.php on line 75

Deprecated: Creation of dynamic property lvesu\lvesu\controller\blog\php::$title is deprecated in /home/www/dev/work/website/lvesu/class/controller/blog/php.php on line 28

Deprecated: Creation of dynamic property lvesu\lvesu\controller\blog\php::$outlink is deprecated in /home/www/dev/work/website/lvesu/template/blog/cms/php.manual.tpl on line 2

Deprecated: Creation of dynamic property lvesu\lvesu\controller\blog\php::$status is deprecated in /home/www/dev/work/website/lvesu/template/blog/index.head.php on line 2
PHP - Manual: 安装 - 互联网笔记

略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: 安装

2025-06-02

安装

为了在 PHP 配置中使用 FTP 函数,应该在安装 PHP 时添加 --enable-ftp 选项。

在 Autotools 中,当使用 openssl 扩展一起构建时,FTP SSL 支持会隐式启用,使用 --with-openssl 配置选项。当不使用 openssl 扩展构建时,可以使用 --with-ftp-ssl Autotools 配置选项显式启用 FTP SSL 支持。

在 Windows 上,此扩展始终编译为共享扩展,因此必须在 php.ini 中启用。

更新日志

版本 说明
8.4.0 从 Autotools 配置选项 --with-openssl-dir 中移除,改为使用新的 --with-ftp-ssl 显式启用 FTP SSL 支持, 当不使用 openssl 扩展构建时。
添加备注

用户贡献的备注 2 notes

up
26
i_djon at hotmail dot com
7 years ago
For some reason folks downvoted the previous entry for this, BUT... indeed, as of PHP 7, to enable this on Windows you have to add the line:

extension=php_ftp.dll

to your php.ini to resolve PHP errors that tell you PHP FTP functions are not defined; the line isn't in there (where, many things are and are just commented out).
up
-4
julian_de_vries at gmx dot de
8 years ago
If you are using PHP 7 under Windows you have to enable ftp in php.ini with extension=php_ftp.dll.

官方地址:https://www.php.net/manual/en/ftp.installation.php

冷却塔厂家 广告
中文GPT4.0无需注册 广告
北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3