如何通过修改日期从ftp命令获取文件列表

时间:2019-05-10 06:14:00

标签: php codeigniter ftp

如何通过修改日期从ftp顺序中获取文件列表?我有一个下面的代码,但是按名称在asc中按顺序显示

$this->load->library('ftp');
$config['hostname'] = "hostname";
$config['username'] = "username";
$config['password'] = "password";
$config['debug'] = FALSE;
$config['timeout'] = 10;

$conn = $this->ftp->connect($config);
if(FALSE !=$conn){
    $files = $this->ftp->list_files('/');
}

0 个答案:

没有答案
相关问题