现在的位置: 首页 > 综合 > 正文

php 创建以UNIX时间戳命名的文件夹

2013年10月19日 ⁄ 综合 ⁄ 共 179字 ⁄ 字号 评论关闭
<?php  
  //Get   timenow  
   
  $addtime=date("Ymd",time());  
   
  //Creat   Dir  
  $testdir="./".$addtime."/";  
  if(file_exists($testdir)):  
  else:  
  mkdir($testdir,0777);  
  endif;  
  ?>

抱歉!评论已关闭.