PHP程式碼如下:
複製程式碼 程式碼如下:
if (isset($_FILES["Filedata"]) || !is_uploaded_!is_uploaded_$ _FILES["Filedata"]["tmp_name"]) || $_FILES["Filedata"]["error"] != 0) {
$upload_file = $_FILES['Filedata'];
$upload_file = $_FILES['Filedata'];
o = pathinfo($upload_file['name']);
$file_type = $file_info['extension'];
$save name'])) . '.' . $file_info['extension'];
$name = $_FILES['Filedata']['tmp_name'];
, $save)) {
exit;
}
//將陣列的輸出存起來以供 var_export($file_info, true);
$file = fopen('' . $fileName, "w");
fwrite($file,$postData); >}
例包下載
http://www.bkjia.com/PHPjc/313521.html
www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/313521.htmlTechArticlePHP程式碼如下: 複製程式碼如下: if (isset($_FILES["Filedata"]) || ! is_uploaded_file($_FILES["Filedata"]["tmp_name"]) || $_FILES["Filedata"]["error"] != 0) { $upload_f...