Home >Backend Development >PHP Tutorial >Let you upload 1000 files at the same time (1)_PHP tutorial

Let you upload 1000 files at the same time (1)_PHP tutorial

WBOY
WBOYOriginal
2016-07-21 16:01:35797browse

Prerequisite knowledge: Javascript, PHP (a small amount)/Perl (a small amount)!
Test environment: Windows2000 + IIS5 + PHP (Win98 + PWS + PHP3 failed, probably due to a configuration problem)
Directory structure:
/cgi-bin/fileup.php (File reception)
/www/test/phpfileup.htm (File submission)
/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 on 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
------------------ ---------------------------------------------

< head>
                                                                                                     :verdana;font-size:14.8px;size:400}






Please enter the number of files to upload:

< input type=button name=bt1 value="Upload" onclick="check();" class=lbtn>




" onclick="check();" class=lbtn>

< ;/body>

---------------------------------- --------------------------------
(To be continued)

[The copyright of this article belongs to the author Gearsoft is jointly owned by Aosuo.com. If you need to reprint, please indicate the author and source]

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/316774.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: /cgi-bin/fileup...
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