<?php
$filename = date("Ym");
$path = "./images/".$filename;
if (!file_exists($path)){
mkdir($path);
}
PHP判断文件夹是否存在和创建文件夹的方法
最新推荐文章于 2024-01-23 02:26:24 发布
<?php
$filename = date("Ym");
$path = "./images/".$filename;
if (!file_exists($path)){
mkdir($path);
}