- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
function img2u($str,$str2) {
if (is_uploaded_file($_FILES[$str]['tmp_name'][$str2])) {
$imageinfo = getimagesize($_FILES[$str]['tmp_name'][$str2]);
if($imageinfo['mime'] == 'image/gif' || $imageinfo['mime'] == 'image/jpeg' || $imageinfo['mime'] == 'image/png') {
if(($_FILES[$str]['size'][$str2] != 0) AND ($_FILES[$str]['size'][$str2]<=1024*1000*3)) {
return 1;
}
}
}
return 0;
}
max-wiz 19.03.2015 16:50 # 0
absolut 19.03.2015 16:54 # +1
superhacker777 19.03.2015 18:39 # 0
Как в «Primer».
Stallman 19.03.2015 18:02 # 0
Image to unsigned int?
zombie65536 19.03.2015 20:14 # 0