if(isset($_FILES['image1'])) { $fileArray1 = $_FILES['image1']; $temp_name1 = $fileArray1['tmp_name']; $file_name1 = $fileArray1['name']; $file_name1_old = '../uploadimg/article_schedule/'.$param_user_id.'-'.time().'-'.$index.'-'.$file_name1; $file_name1_new = '..'.$request_uri.'uploadimg/article_schedule/'.$param_user_id.'-'.time().'-'.$index.'-'.$file_name1; move_uploaded_file($temp_name1,$file_name1_old); array_push($image_info_list,$file_name1_new); }