最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
ftp类(myftp.php)
时间:2008-01-12 编辑:简简单单 来源:一聚教程网
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);
-
上一个: SQL Server如何解决加密问题?
-
下一个: SELECT查询的应用
相关文章
- ftp类(example.php) 01-12
- 一个ftp类(ini.php) 01-12
- PHP导出数据超时的优化建议解读 10-31
- PHP之mysql位运算解析 10-31
- Laravel实现登录跳转功能解析 10-31
- php双向队列解读 10-31