Home >Backend Development >PHP Tutorial >PHP Tutorial.Application Example 14_PHP Tutorial
Multiple file upload system program
//Full version of multiple file upload system
include("../include/common.inc");
$title = "Multiple files Upload program";
include("../include/header.inc");
//Define the number of files allowed to be uploaded
define("UPLOAD_NO", 10) ;
echo("
Welcome! The file you selected has been successfully uploaded to the server's temporary directory!
You can upload up to ".UPLOAD_NO at one time" ."files
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 and try again");
exit();
}
echo("
");
echo("
File number
Related articles
See more