cookie php 一天时间 不指定

Else , 2010/02/07 15:04 , 代码片段,演示也有 , 评论(0) , 阅读(393) , Via 本站原创 | |

  if (!isset($_COOKIE['webcount']))
  {
    $db->query("update ccount set `webcount`=webcount+1 where id =1");
  }
  $mycount=$db->rows("select webcount from ptyz_count where id=1");
  $webcount=$mycount['webcount'];
  setcookie('webcount','aaa',time()+60*60*24);
发表评论

昵称

网址

电邮

打开HTML 打开UBB 打开表情 隐藏 记住我 [登入] [注册]