我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

php获取空目录修改时间?

I can get directory modification time with recursive method (scandir), but if directory was empty or new empty directory was created by mkdir:

mkdir('newdir');
// how get 'newdir' modification time

I search similar posts and google pages but problem not solved

You are looking for filemtime:

echo date ('F d Y H:i:s', filemtime('newdir'));

近期文章

  • PHP递归导航
  • 提交按钮不起作用?
  • 在日期(日期)更改时添加新行 - MySQL,PHP
  • 尝试将图像上传到文件夹
  • 在回复中仅向邮件主题添加一个“Re:”
  • 在另一个PHP文件中访问POST变量[重复]
  • Yii SEO友好语言启用网址
  • 如何使用Web浏览器检查我的php功能是否正确?
  • File_exist在Symfony 2上一直返回false
  • Magento MySQL - “OR”条件为两个addAttributeToFilter()
  • 遇到PHP错误严重性:通知消息:未定义的变量:querry_array
  • 使用X-editable for Bootstrap将值发送到post.php
  • PHP扩展(在C ++中)函数中的pthread_create永远不会返回
  • 使用PHP会话更改更改html菜单项
  • PHPUnit安装
  • php函数从子主菜单项中拆分子菜单并将其显示在另一个div中
  • 我有一些PHP登录问题
  • 为什么jQuery不能在我的网站上运行? [重复]
  • PHP未定义的变量和Javascript
  • 在webroot文件中读取Config变量

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华