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.
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
(int)
FTP_AUTOSEEK
(int)
See ftp_set_option() for information.
FTP_AUTORESUME
(int)
Automatically determine resume position and start position for GET and PUT requests (only works if FTP_AUTOSEEK is enabled)
FTP_FAILED
(int)
Asynchronous transfer has failed
FTP_FINISHED
(int)
Asynchronous transfer has finished
FTP_MOREDATA
(int)
Asynchronous transfer is still active
FTP_TEXT
(int)
Alias of FTP_ASCII
.
FTP_BINARY
(int)
FTP_IMAGE
(int)
Alias of FTP_BINARY
.
FTP_TIMEOUT_SEC
(int)
See ftp_set_option() for information.
FTP_USEPASVADDRESS
(int)
See ftp_set_option() for information.
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.