我想移動從一個文件夾到另一個excel文件,我用下面的代碼行PHP重命名錯誤:系統找不到指定的路徑。 (代碼:3)
$approve_employee_id = $this->input->post('approve_employee_id');
$approve_month_id = $this->input->post('approve_month_name');
$approve_year_name = $this->input->post('approve_year_name');
$approve_employee_username = $this->input->post('approve_employee_username');
$folder_name = $approve_month_id.$approve_year_name;
rename(".files/".$folder_name."/un_approved/".$approve_employee_username, ".files/".$folder_name."/approved/".$approve_employee_username);
我一直在從系統中得到以下錯誤:
A PHP Error was encountered
Severity: Warning
Message: rename(.files/January2013/un_approved/HS0103,.files/January2013/approved/HS0103): The system cannot find the path specified. (code: 3)
Filename: controllers/time_sheet.php
Line Number: 279
我的文件夾樹如下: C:\xampp\htdocs\timesheet\files\January2013\approved
覈准和C:\xampp\htdocs\timesheet\files\January2013\un_approved
爲聯合國批准
請告知最好的方式來實現這一點?
.files /文件/? –
'系統找不到指定的路徑.'你對錯誤信息有什麼不瞭解? –