略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: 安装

2024-12-22

安装

要使用这些 FTP 相关函数,在编译的时候请添加 --enable-ftp 选项。

PHP 5 的 Windows 版本已内建对此扩展的支持。不需要载入额外的扩展来使用这些函数。

从 PHP 7.0.0 开始的 Windows 版本,默认以动态的方式载入该扩展,使用前需要在 php.ini 中开启该扩展。

add a noteadd a note

User Contributed Notes 3 notes

up
22
i_djon at hotmail dot com
4 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
-5
julian_de_vries at gmx dot de
6 years ago
If you are using PHP 7 under Windows you have to enable ftp in php.ini with extension=php_ftp.dll.
up
-6
jacob at power9 dot pw
5 years ago
On linux, one would enable ftp on their php7 server by uncommenting or adding the line "extension=ftp.so" in their php.ini file (likely at /etc/php/php.ini, unless the user moved it).

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

北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3