mysql - PHP running move_upload_file command in OS -
i using mac , run php , found image didn't go upload/ dir.
it create 9 sub-files in "upload". "flipped images" ,"original files","pddf files", "tiff images","rotated images,"jped files","processed images". , save image in 1 of sub-file.
so can't retrieve file. because don't know image save. don't know how happen. , mac come out many alert.
any method can make image 1 file. much.
<?php if ($_files["file"]["error"] > 0) { echo "error: " . $_files["file"]["error"];} else{ echo "檔案名稱: " . $_files["file"]["name"]."<br/>"; echo "檔案類型: " . $_files["file"]["type"]."<br/>"; echo "檔案大小: " . ($_files["file"]["size"] / 1024)." kb<br />"; echo "暫存名稱: " . $_files["file"]["tmp_name"]; if (file_exists("upload/" . $_files["file"]["name"])) echo "檔案已經存在,請勿重覆上傳相同檔案"; else{ move_uploaded_file($_files["file"][ "tmp_name"],"upload/".$_files["file"]["name"]); echo "ss"; } } ?>
Comments
Post a Comment