ftp_connect("имя хоста","порт","timeout");
bool ftp_login ( resource connect, string username, string password )
$user = "admin";
$password = "password1";
$result = ftp_login( $connect, $user, $password );
bool ftp_get ( resource connect, string local_file,
string remote_file, int mode );
$local_file = "/admin/local.txt";
$remote_file = "remote.txt";
ftp_get( $connect, $local_file, $remote_file, FTP_BINARY );
bool ftp_close ( resource connect );
bool ftp_delete ( resource connect, string remote_file );
string ftp_mkdir ( resource connect, string directory );
$dir = "images";
$created_dir = ftp_mkdir( $connect, $dir );
bool ftp_rmdir ( resource connect, string directory );
bool ftp_rename ( resource connect, string from, string to );
echo ftp_size($open, "test.txt");