php8.5
Home/ Manual/ language / context/ FTP context options

FTP context options

PHP function Edit on GitHub ✎

FTP context option listing

Description

Context options for ftp:// and ftps:// transports.

Options

overwritebool

Allow overwriting of already existing files on remote server. Applies to write mode (uploading) only.

Defaults to false.

resume_posint

File offset at which to begin transfer. Applies to read mode (downloading) only.

Defaults to 0 (Beginning of File).

proxystring

Proxy FTP request via http proxy server. Applies to file read operations only. Ex: tcp://squid.example.com:8000.

Notes

Note

Additional context options may be supported by the underlying transport. For ftp:// streams, refer to context options for the tcp:// transport. For ftps:// streams, refer to context options for the ssl:// transport.

See Also

Source: language/context/ftp.xml · from the official PHP manual (php/doc-en)