- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
$files = array();
$dir = opendir("./");
while (($file = readdir($dir))) {
$files[] = trim($file);
}
closedir($dir);
$files = implode(" ", $files);
if (strpos($files, $imagepath) === false) {
mkdir("./" . $imagepath);
}