ftp类_php基础_脚本之家

来源:http://www.mnuet.com 作者:动态资讯 人气:156 发布时间:2020-03-20
摘要:connector = @ftp_connect;$this-login_result =@ftp_login($this-connector, "$uname", "$passwd");if ) { echo "FTPconnection has failed! n";echo "Attempted to connect to $ftp_serverfor user $uname n"; die; } else {echo "Connected to $ftp_server

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;}}?>

本文由广东十一选五一定牛发布于动态资讯,转载请注明出处:ftp类_php基础_脚本之家

关键词:

最火资讯