单击“提交”按钮上载文件以获取此错误500内部服务器 服务器错误日志是否包含任何信息?错误500表示:服务器中的任何内容请放入日志 if(isset($_POST['submit'])) { $tmp_file = $_FILES['file_u

单击“提交”按钮上载文件以获取此错误500内部服务器 服务器错误日志是否包含任何信息?错误500表示:服务器中的任何内容请放入日志 if(isset($_POST['submit'])) { $tmp_file = $_FILES['file_u,file,try-catch,isset,File,Try Catch,Isset,单击“提交”按钮上载文件以获取此错误500内部服务器 服务器错误日志是否包含任何信息?错误500表示:服务器中的任何内容请放入日志 if(isset($_POST['submit'])) { $tmp_file = $_FILES['file_upload']['tmp_name']; $target_file = basename($_FILES['file_upload']['name']); $upload_dir = "images/software-logo/

单击“提交”按钮上载文件以获取此错误500内部服务器
服务器错误日志是否包含任何信息?错误500表示:
服务器中的任何内容
请放入日志
if(isset($_POST['submit'])) {

    $tmp_file = $_FILES['file_upload']['tmp_name'];
    $target_file = basename($_FILES['file_upload']['name']);
    $upload_dir = "images/software-logo/window";
    $upload_db = "images/software-logo/window";

if(move_uploaded_file($tmp_file, $upload_dir."/".$target_file)) {
    $ins_qury = mysql_query("UPDATE `table` SET `col1` ='$upload_db/$target_file' WHERE `col2` = $update_logo_id");

    $message = "File uploaded successfully.";
        } else {
            $error = $_FILES['file_upload']['error'];
        $message = $upload_errors[$error];
    }           
}