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