<?php
require '../config.php';
// Edit upload location here
$result = 0;
$name = mysql_real_escape_string($_FILES['myfile']['name']);
$path = csv;
$ext = 'csv';
$md5 = md5($name);
$target_path = $path . '\\' . $md5 . '.' . $ext;
if(move_uploaded_file($_FILES['myfile']['tmp_name'], $target_path)) {
$result = 1;
}
sleep(1);
?>
它不會上傳任何文件,如與包含括號中的文件名等在PHP中上傳csv文件。當這裏是在代碼中的錯誤
要顯示錯誤信息,使用'的error_reporting(E_ALL);' –