Instalacja

Aby móc używać funkcji FTP, powinieneś dodać opcję --enable-ftp podczas instalacji PHP.

PHP 5 dla systemu Windows posiada wbudowane wsparcie dla tego rozszerzenia. Nie trzeba ładować żadnych dodatkowych rozszerzeń, aby móc używać tych funkcji.

Od PHP 7.0.0 na Windows to rozszerzenie jest zawsze budowane jako współdzielone i musi zostać włączone w php.ini.

add a note add a note

User Contributed Notes 3 notes

up
22
i_djon at hotmail dot com
6 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
8 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
6 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).
To Top