Preparation knowledge: Javascript, PHP (a few)/Perl (a few )! Test Environment: Windows2000 + IIS5 + PHP (Win98 + PWS + PHP3 failed, probably with the title configured) directory structure:/wwwroot/cgi-bin/fileup. php (file receiving)/wwwroot/www/test/p
Preparation knowledge: Javascript, PHP (a few)/Perl (a few )!
Test Environment: Windows2000 IIS5 PHP (Win98 PWS PHP3 failed, probably with the title configured)
Directory structure:
/Wwwroot/cgi-bin/fileup. php (file receipt)
/Wwwroot/www/test/phpfileup.htm (file submission)
/Wwwroot/www/test/tmp/(retain directory by default) Preface: file upload, simple and troublesome. The following is the submission page for uploading files. using this page, you can not only Upload 1000 file frames by nature (actually any number of 0 ~ N), and the retention paths can be distinguished.
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 is inherently very simple, it is not described here. two functions are defined using javascript. check () is used to submit the page, and create () is used to upload a natural file. If you have any better suggestions or have any questions, please Email: gearsoft@netease.com phpfileup.htm
--------------------------------------------------------