<? require "./ftp.class.php"; $ftp = new ClsFTP("root",""); $ftp->put("put.tmp","1.mid");//put file $ftp->p($ftp->rawlist("."));//list $ftp->close(); ?>