Dutch PHP Conference 2025 - Call For Papers

安装

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

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

add a note

User Contributed Notes 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.
To Top