date_default_timezone_set('Asia/Shanghai');
#昨天
echo date("Y/m/d h:i:s",time()-24*60*60);
echo "<br>";
#前天
echo date("Y/m/d h:i:s",time()-2*24*60*60);
?>
$firstday = mktime(0,0,0,$month,1,$year);
$tianshu = date('t',$firstday); //获取指定月天数
function highlight($title, $url, $body, $color='')
{
global $replace_num;
$count = '';
function get_remote_ip()
{
if (!empty($_SERVER["HTTP_CDN_SRC_IP"]) )
{
if (!empty($_SERVER["HTTP_CLIENT_IP"]) )
{
$ip = $_SERVER["HTTP_CLIENT_IP"];
echo #yoho.cn >> %windir%\SYSTEM32\drivers\etc\hosts
@attrib %windir%\SYSTEM32\drivers\etc\hosts -r