I am a bad student == I don’t know how to learn a lot by myself. I want to ask a question from a master. The code in the book is as follows:
<?php
date_default_timezone_set("Etc/GMT-8 ");
if(!isset($_COOKIE["visittime"])){ //If the cookie does not exist
setcookie("visittime",date("y-m-d H:i: s")); //Set a Cookie variable
echo "first time to meet:".date("y-m-d H:i:s")."<br>"; //Output string
}else{ //If Cookie exists
setcookie("visittime",date("y-m-d H:i:s"),time() 60); //Set variables with Cookie expiration time
echo "last time:".$_COOKIE["visittime"]; //Output the time of the last visit to the website----------- --------------
echo "<br>"; //Output carriage return character
}
echo "now : ".date("y-m-d H:i:s"); //Output the current access time *********************
?>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
Rendering For:
First load:
Second Refresh times:
Question: What I want to ask is == created a new cookie file, re-execute this command. Why is the time in setcookie() in the line in the remarks changed to the current time date("y-m-d H:i:s"), and then there is -------- in the remarks? - The line can also output the last time instead of the current time. Then, there is *********** in the remarks but the output is the current time, which is correct== What's going on? What's going on when the line of ------------- arrives? God, please help. T T
什么手什么脚 | 为什么会得痛风 | 层出不穷是什么意思 | 痰多吃什么药好 | 蔚姓氏读什么 |
人被老鼠咬了什么预兆 | 吃什么可以降火祛痘 | 瘦马什么意思 | 凝血常规是查什么的 | 四月18号是什么星座的 |
胃病吃什么药最好根治 | 6月5号什么星座 | 小朋友喜欢玩什么 | poem是什么意思 | 性生活有什么好处 |
chino是什么意思 | 酒糟是什么 | 肌肤甲错是什么意思 | 大利月小利月什么意思 | 血小板计数是什么意思 |
3.13是什么星座hcv9jop3ns5r.cn | 臊子面的臊子是什么hcv8jop8ns6r.cn | 第二职业干点什么好呢96micro.com | 颈椎生理曲度变直是什么意思hcv8jop4ns3r.cn | 99年属什么的hcv9jop7ns4r.cn |
伯恩光学是做什么的hcv9jop5ns5r.cn | 7月份可以种什么菜hcv9jop1ns2r.cn | 樟脑是什么hcv9jop3ns1r.cn | 怀孕吃火龙果对胎儿有什么好hcv8jop3ns1r.cn | 孟母三迁的故事告诉我们什么道理hcv7jop9ns0r.cn |
虎落平阳被犬欺是什么生肖hcv9jop7ns5r.cn | 东方美人茶属于什么茶hcv9jop2ns8r.cn | 宫颈细胞学检查是什么意思hcv7jop7ns1r.cn | 辛辣都包括什么hcv7jop9ns3r.cn | 义父什么意思hcv9jop5ns3r.cn |
妥协是什么意思hcv9jop2ns5r.cn | 虱子用什么药可以根除hcv8jop5ns0r.cn | 梦见自己杀人了是什么意思jasonfriends.com | 荔枝什么品种好吃hcv8jop5ns4r.cn | 打嗝是什么意思hcv7jop7ns4r.cn |
PHP Chinese manual says this
Before setting a cookie for the same parameter again, you must delete it first. If the value of the parameter is an empty string or FALSE, and the other parameters are still the same as the last call to setcookie, the specified name will be deleted by the remote client.
Hope this solves your problem