php 创建以UNIX时间戳命名的文件夹(示例代码)_PHP教程

WBOY
Release: 2016-07-13 10:37:10
Original
853 people have browsed it

实例如下:

复制代码代码如下:

//Get timenow

$addtime=date("Ymd",time());

//Creat Dir
$testdir="./".$addtime."/";
if(file_exists($testdir)):
else:
mkdir($testdir,0777);
endif;
?>

www.bkjia.com true http://www.bkjia.com/PHPjc/736782.html TechArticle 实例如下: 复制代码 代码如下: ?php //Get timenow $addtime=date("Ymd",time()); //Creat Dir $testdir="./".$addtime."/"; if(file_exists($testdir)): else: mkdir($testdir,07...
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!