PHP Tutorial. application instance 14_PHP tutorial

Source: Internet
Author: User
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...

File number

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.