色尼玛亚洲综合影院,亚洲3atv精品一区二区三区,麻豆freexxxx性91精品,欧美在线91

簡單的cookie計數器實現源碼

復制代碼 代碼如下:
<?php  if (!empty ($_COOKIE['example'] ))
             $example = ++$_COOKIE['example'] ;
        else $example = 1 ; 
            setcookie("example",$example,time()+54000);
?>

復制代碼 代碼如下:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>簡單的COOKIE計數器</title>
<style type="text/css">
<!--
.style1 {
    font-size: 14px;
    font-family: "華文琥珀";
}
.style2 {
    font-size: 25px;
    font-family: "華文行楷";
}
.style3 {
    font-size: 13px;
    font-family: "華文琥珀";
}
-->
</style>
</head>
<body>
<table width="350" height="208" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td background="images/136.JPG">
      <table width="240" height="208" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td height="30" align="center" class="style2"> </td>
      </tr>
      <tr>
        <td height="25" align="center" class="style2">歡迎光臨</td>
      </tr>
      <tr>
        <td height="30" align="center" valign="top">
          <span class="style1">本頁已經被訪問:</span>
          <span class="style2"> <?php echo "$example";?>次</span>
        </td>
      </tr>
      <tr>
        <td height="18" align="center" valign="top">
          <span class="style3">簡單的COOKIE計數器</span>
        </td>
      </tr>
      <tr>
        <td height="30" align="center"> </td>
      </tr>
    </table> </td>
  </tr>
</table>
</body>
</html>


 

php技術簡單的cookie計數器實現源碼,轉載需保留來源!

鄭重聲明:本文版權歸原作者所有,轉載文章僅為傳播更多信息之目的,如作者信息標記有誤,請第一時間聯系我們修改或刪除,多謝。

主站蜘蛛池模板: 岗巴县| 咸宁市| 渝北区| 安溪县| 古丈县| 绥德县| 息烽县| 阳山县| 监利县| 绥德县| 新巴尔虎左旗| 兴国县| 徐汇区| 新邵县| 新民市| 太和县| 横峰县| 遂平县| 来安县| 长子县| 濮阳县| 新野县| 寻乌县| 石狮市| 丰宁| 正安县| 山西省| 南投县| 奉新县| 九寨沟县| 乐山市| 台湾省| 常德市| 武山县| 屏南县| 临颍县| 宜州市| 洪江市| 大连市| 布尔津县| 三都|