- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
$img_name_clean = $_FILES[$key]['name'];
$img_name_clean = str_replace (".img","",$img_name_clean);
$img_name_clean = str_replace (".jpeg","",$img_name_clean);
$img_name_clean = str_replace (".jpg","",$img_name_clean);
$img_name_clean = str_replace (".gif","",$img_name_clean);
$img_name_clean = str_replace (".JPG","",$img_name_clean);
$img_name_clean = str_replace (".IMG","",$img_name_clean);
$img_name_clean = str_replace (".GIF","",$img_name_clean);
$img_name_clean = str_replace (".JPEG","",$img_name_clean);
if(!file_exists("../foto/".$img_name_clean."/")){mkdir("../foto/".$img_name_clean."/", 0777); chmod('../foto/'.$img_name_clean, 0777);}