PHP FTP

王林
Release: 2023-09-01 08:46:02
forward
1410 people have browsed it

PHP FTP

Introduction

ftp:// and ftps:// wrappers both allow access via ftp( and ftps) read access protocol to the URL. New files can also be created using these wrappers. If the server cannot support passive mode ftp, the connection will fail.

Streams using the ftp protocol do not allow simultaneous read and write operations. If an existing file needs to be overwritten, this can be done by specifying the overwrite option in the context options.

php.ini file has settings that specify the email ID to be used for unauthenticated FTP connections. If set, used as the anonymous FTP password. FTP access is also possible with the help of FTP extension.

Only supported when openssl extension is enabled ftps:// php.ini. If the server does not support SSL, the connection will revert to unencrypted mode.

Usage

ftp://example.com/pub/test.txt
ftps://user:password@example.com/pub/test.txt
Copy after login

The above is the detailed content of PHP FTP. For more information, please follow other related articles on the PHP Chinese website!

Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template