Below you will find pages that utilize the taxonomy term “ftp”
Posts
FreeBSD 使用PHP 透過FTP連線拋檔 備份
<?php define(“FTP_TIMEOUT”,90); // FTP Statuscodes define(“FTP_COMMAND_OK”,200); define(“FTP_FILE_ACTION_OK”,250); define(“FTP_FILE_TRANSFER_OK”,226); define(“FTP_COMMAND_NOT_IMPLEMENTED”,502); define(“FTP_FILE_STATUS”,213); define(“FTP_NAME_SYSTEM_TYPE”,215); define(“FTP_PASSIVE_MODE”,227); define(“FTP_PATHNAME”,257); define(“FTP_SERVICE_READY”,220); define(“FTP_USER_LOGGED_IN”,230); define(“FTP_PASSWORD_NEEDED”,331); define(“FTP_USER_NOT_LOGGED_IN”,530); if (!defined(“FTP_ASCII”)) define(“FTP_ASCII”,0); if (!defined(“FTP_BINARY”)) define(“FTP_BINARY”,1); class FTP { var $passiveMode = TRUE; var $lastLines = array(); var $lastLine = “”; var $controlSocket = NULL; var $newResult = FALSE; var $lastResult = -1; var $pasvAddr = NULL; var $error_no = NULL; var $error_msg = NULL; function FTP() { } function connect($host, $port=21, $timeout=FTP_TIMEOUT)