ftp://

The ftp:// wrapper is a native PHP wrapper, to access files on a remote FTP server. It handles both FTP and FTPS.

<?php

// display a distant file from a FTP server
print_r(file_get_content('ftp://user:password@ftp.server.com:/pub/file.txt'));

?>

Documentation

See also Mastering PHP Wrappers: Concepts, Use Cases, and Security Risks.

Related : Wrapper, PHP Wrappers