Php implements file upload. First of all, you must write a form: & amp; lt; formaction = & quot; method = & quot; post & quot; enctype = & quot; multipart/form-data & quot; & amp; gt; & amp; lt; Indium
Php implements file Upload very easily. First of all, it is to write a form:
The next step is to solve the upload problem. you can use move_uploaded_file () to solve the upload problem. to solve the decompression problem, first introduce the total php com () method, it indicates that a piece of encapsulated code (object) is used to complete some functions of a windows application. The COM function can connect to an object instance and use its methods and attributes. The following php point-to-point provides a simple demo code, of course, not perfect
Run ("winrar x $ dir \". $ new_name. "". $ dir); // unlink ($ new_name); delete compressed files}?>