ftp_async_fget

(PHP 4 CVS only)

ftp_async_fget -- Retrieves a file from the FTP server asynchronously 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 this function and the ftp_fget() is that this function retrieves the file asynchronously, so your program can perform other operations while the file is being downloaded.

Returns TRUE on success or FALSE on error.

See also ftp_async_get().