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


实例如下:
复制代码 代码如下:

<?php  
  //Get   timenow  

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

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

« 
» 
快速导航

Copyright © 2016 phpStudy | 豫ICP备2021030365号-3