search
HomeBackend DevelopmentPHP ProblemHow to install php ftp module

Method: 1. Execute the "cd php-5.2.13/ext/ftp" command to enter the source directory; 2. Run phpize to generate configure; 3. Compile and specify php-config; 4. Use the make command to compile and install ;5. Open the php.ini file, configure the module directory, save and exit.

How to install php ftp module

The operating environment of this tutorial: CentOS 6 system, PHP version 7.1, Dell G3 computer.

How to install the php ftp module (php-FTP extension)

Enter the source code directory

cd php-5.2.13/ext/ftp

Run phpize to generate configure

/usr/local/php/bin/phpize

Compile, specify php-config, note that php-config here is not php.ini

./configure --with-php-config=/usr/local/php/bin/php-config --enable-ftp
#上面可以添加--enable-ftp,也可以不用添加

Compile and install

make && make install

Edit the php.ini file and specify the directory to which PHP reads the module

vi /usr/ local/php/etc/php.ini

#编辑扩展模块目录
extension_dir="/usr/local/php/lib/php/extensions/no-debug-non-zts-20060613/"
#Load模块
extension=ftp.so

Save and exit

At this point, the loading of the ftp extension is successfully completed.

Recommended learning: "PHP Video Tutorial"

The above is the detailed content of How to install php ftp module. For more information, please follow other related articles on the PHP Chinese website!

Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

VSCode Windows 64-bit Download

VSCode Windows 64-bit Download

A free and powerful IDE editor launched by Microsoft

DVWA

DVWA

Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software

Atom editor mac version download

Atom editor mac version download

The most popular open source editor

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 English version

SublimeText3 English version

Recommended: Win version, supports code prompts!