- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
- 35
- 36
- 37
- 38
- 39
- 40
- 41
<?php
if((isset($_FILES['file1'])) ||
(isset($_FILES['file2'])) ||
(isset($_FILES['file3'])) ||
(isset($_FILES['file4']))){
if($_FILES['file1'] ['error'] ||
$_FILES['file2'] ['error'] ||
$_FILES['file3'] ['error'] ||
$_FILES['file4'] ['error'] == 0 &&
$_FILES['file1'] ['saze'] ||
$_FILES['file2'] ['saze'] ||
$_FILES['file3'] ['saze'] ||
$_FILES['file4'] ['saze'] > 0) {
$path1 = "E:\\apache\\";
$path1 .= basename($_FILES['file1'] ['name']);
$path2 = "E:\\apache\\";
$path2 .= basename($_FILES['file2'] ['name']);
$path3 = "E:\\apache\\";
$path3 .= basename($_FILES['file3'] ['name']);
$path4 = "E:\\apache\\";
$path4 .= basename($_FILES['file4'] ['name']);
if(@move_uploaded_file($_FILES['file1'] ['tmp_name'],$path1)){
if(@move_uploaded_file($_FILES['file2'] ['tmp_name'],$path2)){
if(@move_uploaded_file($_FILES['file3'] ['tmp_name'],$path3)){
if(@move_uploaded_file($_FILES['file4'] ['tmp_name'],$path4)){
}else{}
}else{}
}else{}
}else{}
}else{}
}else{}
?>
я даже не знаю, как это прокомментировать. особенно нравится $_FILES['file1'] ['saze']