$ftp=ftp_connect("server.ru"); $ftp_login=ftp_login("login","pass"); ftp_put($ftp,"123.html","http://site.ru/index.htm",FTP_BINARY); ftp_quit($ftp);