摘要:
重定向Header("Location: http://url";); 禁止页面缓存header( 'Expires: Mon, 26 Jul 1997 05:00:00 GMT' );header( 'Last-Modified: ' . gmdate( 'D, d M Y H:i:s' ) . ' GMT' );header( 'Cache-Control: no-store, no-cache, must-revalidate' );header( 'Cache-Control: 阅读全文
摘要:
function HtmlEncode($fString){ if($fString!="") { $fString = str_replace( '>', '>',$fString); $fString = str_replace( '<', '<',$fString); $fStri 阅读全文
摘要:
smarty日期使用案例$smarty = new Smarty;$smarty->assign('yesterday', strtotime('-1 day'));$smarty->display('index.tpl');index.tpl:{$smarty.now|date_format} //Sep 7, 2009{$smarty.now|date_format:"%A, %B %e, %Y"}{$smarty.now|date_format:"%H:%M:%S"}{$yesterday 阅读全文