$HTTP_COOKIE_VARS["VisitTimes"]?($VisitTimes ++):($VisitTimes = 1);
setcookie("VisitTimes",$VisitTimes,time()+31536000);
echo "欢迎你第 ".$VisitTimes.
" 光临我的主页
n";
?>
cookie在WEB应用常常被用到,我们上面提供的这款php教程 cookie应用实例是一款在实例应用常用到的代码
http://www.bkjia.com/PHPjc/444924.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/444924.htmlTechArticle? $HTTP_COOKIE_VARS[VisitTimes]?($VisitTimes ++):($VisitTimes = 1); setcookie(VisitTimes,$VisitTimes,time()+31536000); echo b欢迎你第font color=#FF0000 .$VisitTimes. /font光临我...