PHP Tutorial. application instance 14. Multi-file upload system program? Php multi-file upload system Full version include (.. includecommon. inc); $ title Upload program for multiple files; include (.. includeheader. inc); defines the ability to upload system programs to multiple files
// Full version of multifile Upload system
Include ("../include/common. inc ");
$ Title = "upload programs for multiple files ";
Include ("../include/header. inc ");
// Defines the number of objects that can be uploaded
Define ("UPLOAD_NO", 10 );
Echo ("
Welcome!
You can upload up to ". UPLOAD_NO." files at a time.
N ");
If ($ REQUEST_METHOD! = "POST "){
Echo ("n ");
}
Else {
// Process Upload
$ Noinput = true;
For ($ I = 1; $ noinput & ($ I <= UPLOAD_NO); $ I ++ ){
If ($ {"infile". $ I }! = "None") $ noinput = false;
}
If ($ noinput ){
Echo ("no selected file, return retry ");
Exit ();
}
Echo ("
The selected file has been successfully uploaded to the temporary directory on the server!
");
Echo ("
Why? Php // full version of the multifile Upload system include (.. /include/common. inc); $ title = Upload program of multiple files; include (.. /include/header. inc); // The definition allows...