Home  >  Article  >  Backend Development  >  Let you upload 1000 files at the same time_PHP tutorial

Let you upload 1000 files at the same time_PHP tutorial

WBOY
WBOYOriginal
2016-07-13 10:58:57931browse

Preliminary knowledge: Javascript, PHP (a small amount)/Perl (a small amount)!
Test environment: Windows2000 IIS5 PHP (Win98 PWS PHP3 failed, probably because of a configuration problem)
Directory structure:
/wwwroot/cgi-bin/fileup.php (File receiving)
/wwwroot/www/test/phpfileup.htm (file submission)
/wwwroot/www/test/tmp/ (default saving directory)

Foreword: File uploading is simple and troublesome. The following is the submission page for uploading files. Using this page, you can not only generate 1000 upload file boxes (actually any number of 0~n), but also indicate their saving paths respectively.
The file input box on the submission page is named: file0, file1,...file100,...fileN
The file path box of the submission page is named: path0,path1,...path100,...pathN
Since the generation of the page is very simple, I won’t explain it here. Two functions are defined in javascript, check() is used to submit the page, and create() is used to generate the file upload box. If you have any better suggestions or questions, please email: gearsoft@netease.com

phpfileup.htm
-------------------------------------------------- ------









Please enter the number of files to upload:












Now that the file submission page has been generated, the following task is clear: save the submitted file content to the server.

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/631940.htmlTechArticlePreliminary knowledge: Javascript, PHP (a small amount)/Perl (a small amount)! Test environment: Windows2000 IIS5 PHP (Win98 PWS PHP3 failed, probably because of a configuration problem) Directory structure: /wwwroot/cgi-bin/file...
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn