我试图使用codeigniter ftp类上传文件。无法找到源文件。请检查您的路径
$this->load->library('ftp');
$config['hostname'] = 'www.domain.com';
$config['username'] = 'xxxxxxxxx';
$config['password'] = 'xxxxxxxx';
$config['port'] = 21;
$config['passive'] = FALSE;
$config['debug'] = TRUE;
$this->ftp->connect($config);
$this->ftp->upload('C:\Users\SYSTEM2\Desktop\checking\ash.jpg\' , base_url().'uploads/myfolder/ash.jpg/');
$this->ftp->close();
但显示这个错误
“无法找到源文件。请检查您的路径。” 有人请帮我解决这个问题...
我很惊讶你没有得到一个语法错误。 – deceze 2013-03-16 08:59:42