织梦获取栏目和首页的时间的函数
//获取当前栏目的url时间
functionremote_filectime($url_file){
$headInf=get_headers($url_file,I.);
$time=strt
更多精彩就在: 51免费论文网|www.jxszl.com
otime($headInf[Last-Modified]);
$timea=date(Y-m-d,$time).T.date(H:i:s,$time);
return$timea;
}
织梦调用方法
{dede:global.cfg_indexurlfunction=remote_filectime(@me)/}//首页获取url时间
{dede:type}[field:typelinkfunction=remote_filectime(@me)/]{/dede:type}//栏目页获取url时间
原文链接:http://www.jxszl.com/biancheng/dedecms/76544.html