我試圖使用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