返回列表 發帖

判斷暫存檔有無存取成功

<?

    $up_dir = "./upload/";
    $to = iconv("UTF-8","BIG5",$_FILES["myfile"]["name"]);
    $up_file = $up_dir.$to;
     
    // $up_file = $up_dir.$to = iconv("UTF-8","BIG5",$FILES["myfile"]["name"]);
     
    // 判斷暫存檔有無存取成功
    if(move_upload_file($_FILES["myfile"]["tmp_name"],$up_file)){
    }
     
?>
May

返回列表