ftp_async_fget

(unknown)

ftp_async_fget -- Retrieves a file from the FTP server asynchronly and writes it to an open file

Description

bool ftp_async_fget ( resource ftp_stream, resource fp, string remote_file, int mode [, int resumepos])

ftp_async_fget() retrieves remote_file from the FTP server, and writes it to the given file pointer, fp. The transfer mode specified must be either FTP_ASCII or FTP_BINARY. The difference between ftp_fget() is that this function retrieves the file asyncronously, so you can do other things in your program while the file is downloaded.

Returns TRUE on success, FALSE on error.

See also ftp_async_get().