class myftp {
var $connector;
var $getback;
$this->connector = @ftp_connect($ftp_server);
$$this->login_result = @this_login 🎜> if ((!$this->connector)
(!$this->login_result))
" ;
echo "嘗試連結使用者$ uname n 的$ftp_server";
死;
echo "已連接$ftp_server,使用者$uname n";
}
}
lastmodtime($value){
$getback = ftp_mdtm ($this->連接器,$value);
edir($targetdir){
$getback = ftp_chdir($this->;連接器, $targetdir);
return
$getback = ftp_pwd($this-> connector);
return $getback;
}
function get list($this->connector, $directory);
return $ getback;
}
function get_file($file_to_get, $mode, $mode2){
$filename = $realfile;
$checkdir = @$this-> Changedir($realfile);
if ($checkdir == TRUE>this echo "n[DIR] $ realfile";
}else{
與「......」之後。 $realfile ."n";
$getback = ftp_get($this->connector, $filename, $realfile, $oo $delstatus = ftp_delete($ this ->connector, $file_to_get);
if ($delstatus == TRUE){
";
}
)
return $getback;
}
功能模式($pasvmode){ 🎜> }
function ftp_bye(){
ftp_quit($this->connector);
🎜>?>