PHP Implementation upload excle file
To implement PHP upload Excel, when selecting a file, only show Excel file, and how to judge $upfile=$_files["Upfile"]; $type = $upfile ["type"]; $type is Excel, I tried $type== "xls" does not, it should be equal to what, there is a problem is uploading, not all the first upload files to a temporary file, and then move to the specified target, this temporary file how to delete PHP Excel
Share to:
------Solution--------------------
1, $upfile ["type"]:
XLA application/vnd.ms-excel
XLC Application/vnd.ms-excel
XLL Application/x-excel
XLM application/vnd.ms-excel
XLS application/vnd.ms-excel
XLT Application/vnd.ms-excel
XLW Application/vnd.ms-excel
2, temporary directory without your tube, upload the program after the system will automatically delete temporary files.
------Solution--------------------
Judge the extension.