- 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']
larikov 10.05.2012 05:58 # +1
Lure Of Chaos 10.05.2012 10:20 # 0
volhv 10.05.2012 11:08 # +1
}else{}
}else{}
}else{}
}else{}
}else{}
шикарно
Lure Of Chaos 10.05.2012 13:06 # +1
i-- 10.05.2012 13:19 # −3
an0nym 10.05.2012 20:21 # −1
roman-kashitsyn 10.05.2012 20:27 # −1
heleg 10.05.2012 21:30 # −1
в формат этого сайта не входит по количеству строк