|
@@ -1325,9 +1325,12 @@ class Notify extends Api
|
|
|
@touch('./dashuju/' . $check_filename);
|
|
|
}
|
|
|
|
|
|
+ //连接ftp
|
|
|
$conn = ftp_connect($host, $port) or die("Could not connect");
|
|
|
-
|
|
|
+ //登录
|
|
|
ftp_login($conn,$username,$password);
|
|
|
+ //开启被动模式
|
|
|
+ ftp_pasv($conn, true);
|
|
|
//利用ftp创建目录
|
|
|
/*$path = "home/2021-12-08";
|
|
|
$this->make_directory($conn,$path);
|