Pre-Knowledge: Javascript, PHP (small)/perl (small)!
Test environment: Windows2000 + IIS5 + PHP (Win98 + PWS + PHP3 failed, estimated to be a problem with the configuration)
Directory structure:
/cgi-bin/fileup.php (File receive)
/www/test/phpfileup.htm (file submission)
/www/test/tmp/(Default save directory)
Preface: File upload, simple and troublesome. The following is the upload file Submission page, using this page you can not only generate 1000 upload file box (actually any number of 0~n), and can indicate their save path respectively.
The file input box for the submission page is named: File0,file1,... file100,... filen
The File path box for the Submit page is named: path0,path1,... path100,... pathn
Because the page generation is very simple, so there is no more explanation, with JavaScript defined two functions, check () for the submission page, create () to generate File upload box. If you have any better suggestions or have any questions please email:gearsoft@netease.com
Phpfileup.htm
--------------------------------------------------------
<title></title>
Please enter the number of files to upload:
-------------------------------------------------------------------
adjourned
"The copyright of this article is owned by author Gearsoft and house Orso near net, if need to reprint, please indicate author and source"
The above describes the Dell Vostro 1000 allows you to upload 1000 files simultaneously (a), including the Dell Vostro 1000 content, hope to be interested in the PHP tutorial friends helpful.