Allow you to upload 1000 files simultaneously (1) _ PHP Tutorial
Source: Internet
Author: User
Allow you to upload 1000 files at the same time (1 ). Prerequisites: Javascript, PHP (a few) Perl (a few )! Test Environment: Windows2000 + IIS5 + PHP (Win98 + PWS + PHP3 failed, probably due to a configuration problem) directory structure: cgi-binfileup prerequisites: Javascript, PHP (a few) /Perl (a few )!
Test Environment: Windows2000 + IIS5 + PHP (Win98 + PWS + PHP3 failed, probably due to a configuration error)
Directory structure:
/Cgi-bin/fileup. php (file receipt)
/Www/test/phpfileup.htm (file submission)
/Www/test/tmp/(default directory)
Uploading files is simple and troublesome. The following is the submission page for uploading files. using this page, you can generate not only 1000 Upload file boxes (actually any number of 0 ~ N), and you can specify their storage paths.
The file input box on the submit page is named: file0, file1,... file100,... fileN
The file path box on the submit page is named path0, path1,... path100,... pathN.
Because the page generation is very simple, I will not explain it here. two functions are defined using javascript. check () is used to submit the page, and create () is used to generate a file upload box. If you have any better suggestions or have any questions, please Email: gearsoft@netease.com
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.