获取网站的最后修改日期 [英] To get last modified date of website

查看:79
本文介绍了获取网站的最后修改日期的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我想获得一个网站的最后修改日期,

但我完全不知道怎么做。

是否有任何人知道如何做到这一点..


提前提前....

解决方案

快速谷歌透露


回音日期(m / d / Y,filemtime(" filename.php"));


格式化你喜欢的方式...


或者更好(我认为)来自php手册

展开 | 选择 | Wrap | 行号

thanx Beary,

但问题还没有解决。

我想编写一个脚本,它将生成任何外部的最后修改日期url说www.example.com等。

你的代码只生成当前文件的最后修改日期。


hi all,

I want to get the last modified date of a website,
but I am completely clueless how to do it.
Is any one got any idea how to do it..

thanx in advance....

解决方案

Well a quick google revealed

echo date("m/d/Y",filemtime("filename.php"));

Format it how you like...


Or even better (I think) from the php manual

Expand|Select|Wrap|Line Numbers


thanx Beary,
but problem is not solved yet.
I wanna write a script which will generate the last modified date of any outside url say www.example.com etc.
your code will generate last modified date of current file only.


这篇关于获取网站的最后修改日期的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆