PHP 7.4.8 Released!

Predefined Constants

The constants below are defined by this extension, and will only be available when the extension has either been compiled into PHP or dynamically loaded at runtime.

FTP_ASCII (integer)

FTP_AUTOSEEK (integer)

See ftp_set_option() for information.


Automatically determine resume position and start position for GET and PUT requests (only works if FTP_AUTOSEEK is enabled)

FTP_FAILED (integer)

Asynchronous transfer has failed

FTP_FINISHED (integer)

Asynchronous transfer has finished

FTP_MOREDATA (integer)

Asynchronous transfer is still active

FTP_TEXT (integer)

Alias of FTP_ASCII.

FTP_BINARY (integer)

FTP_IMAGE (integer)

Alias of FTP_BINARY.


See ftp_set_option() for information.


See ftp_set_option() for information. Available as of PHP 5.6.0.

add a note add a note

User Contributed Notes 1 note

Tyler Crompton
5 years ago
This doesn't seem to be in the documentation, but FTP_ASCII and FTP_TEXT are synonymous and FTP_BINARY and FTP_IMAGE are synonymous.
To Top