最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
ftp类(myftp.php)
时间:2022-07-02 10:10:16 编辑:袖梨 来源:一聚教程网
class myftp {
var $connector;
var $getback;
function connect($ftp_server, $uname, $passwd){
// Baut grundlegende FTP Connection auf
$this->connector = @ftp_connect($ftp_server);
$this->login_result = @ftp_login($this->connector, "$uname", "$passwd");
if ((!$this->connector) || (!$this->login_result))
{
echo "FTP connection has failed! ";
echo "Attempted to connect to $ftp_server for user $uname ";
die;
} else {
echo "Connected to $ftp_server, for user $uname ";
}
}
function lastmodtime($value){
$getback = ftp_mdtm ($this->connector,$value);
return $getback;
}
function changedir($targetdir){
$getback = ftp_chdir($this->connector, $targetdir);
return $getback;
}
function getdir(){
$getback = ftp_pwd($this->connector);
var $connector;
var $getback;
function connect($ftp_server, $uname, $passwd){
// Baut grundlegende FTP Connection auf
$this->connector = @ftp_connect($ftp_server);
$this->login_result = @ftp_login($this->connector, "$uname", "$passwd");
if ((!$this->connector) || (!$this->login_result))
{
echo "FTP connection has failed! ";
echo "Attempted to connect to $ftp_server for user $uname ";
die;
} else {
echo "Connected to $ftp_server, for user $uname ";
}
}
function lastmodtime($value){
$getback = ftp_mdtm ($this->connector,$value);
return $getback;
}
function changedir($targetdir){
$getback = ftp_chdir($this->connector, $targetdir);
return $getback;
}
function getdir(){
$getback = ftp_pwd($this->connector);
相关文章
- 光遇5.7肉桂卷代币在哪里 光遇5月7日大耳狗联动代币收集攻略 05-07
- 光遇5.7红石碎片在哪里 光遇5月7日红石碎片位置攻略 05-07
- 光遇5.7大蜡烛在哪里 光遇5月7日大蜡烛位置攻略 05-07
- 光遇5.7免费魔法有什么 光遇5月7日免费魔法收集攻略 05-07
- 菲律宾交易所app下载苹果版 05-07
- 菲律宾交易所官网下载手机版 05-07