亚洲必赢娱乐第一平台ftp类_php基础_脚本之家

connector = @ftp_connect;$this->login_result =
@ftp_login($this->connector, “$uname”, “$passwd”);if ) { echo “FTP
connection has failed! n”;echo “Attempted to connect to $ftp_server
for user $uname n”; die; } else {echo “Connected to $ftp_server, for
user $uname n”;}}function lastmodtime{$getback = ftp_mdtm
($this->connector,$value);return $getback;}function
changedir{$getback = ftp_chdir($this->connector, $targetdir);return
$getback;}function getdir(){$getback = ftp_pwd;return
$getback;}function get_file_list{$getback =
ftp_nlist($this->connector, $directory);return $getback;}function
get_file($file_to_get, $mode, $mode2){$realfile = basename;$filename
= $realfile;$checkdir = @$this->changedir;if {ftp_cdup;echo
“n[DIR] $realfile”;}else{echo “….. “. $realfile .”n”;$getback =
ftp_get($this->connector, $filename, $realfile, $mode);if
{$delstatus = ftp_delete($this->connector, $file_to_get);if {echo
“File $realfile on $host deleted n”;}}}return $getback;}function
mode{$result = ftp_pasv($this->connector, $pasvmode);}function
ftp_bye(){ftp_quit; return $getback;}}?>

发表评论

电子邮件地址不会被公开。 必填项已用*标注