2021
10-12
10-12
asp与php中定时生成页面的思路与代码
PHP版本的的定时生成页面的:<?php$file=dirname(__FILE__).'/index.html';$timex=time()-filemtime($file);//间隔时间,单位秒if($timex>7200){//间隔大于2小时,重新生成echo"<scriptlanguage=javascriptsrc='crhtml.php'></script>";}?>ASP版本的的定时生成页面的:<%'不缓存Response.Buffer=TrueResponse.ExpiresAbsolute=Now()-1Response.Expires=0Response.cachecontrol="no-cache"'读取最后修...
继续阅读 >