Create a new directory, change into it and upload a file
$ftp = new FTP('ftp.myserver.com', 'username', 'password',false);
$ftp->mkdir('somedir');
$ftp->chdir('somedir');
$ftp->put(['my_local_file.html','my_local_file2.html']);
$ftp = new FTP('ftp.myserver.com', 'username', 'password',false);
$ftp->chdir('somedir');
$ftp->get('my_local_file.html', 'file_on_server.html');