File transfer method used by FTP:
1. ASCII transfer method
Assume that the file the user is copying contains simple ASCII code text , if the remote machine is not running UNIX, when the file is transferred, ftp will usually automatically adjust the contents of the file to interpret the file into the format in which the other computer stores the text file.
2. Binary transmission method
In binary transmission, the bit order of the file is saved so that the original and copied ones correspond one to one bit by bit. Even files containing bit sequences on the destination machine are meaningless. For example, Macintosh transfers an executable file to a Windows system in binary mode, but this file cannot be executed on the other system.
The above is the detailed content of What are the two file transfer methods used by FTP?. For more information, please follow other related articles on the PHP Chinese website!