php cookis創(chuàng)建實(shí)現(xiàn)代碼
更新時(shí)間:2009年03月16日 23:02:20 作者:
php下創(chuàng)建cookis實(shí)現(xiàn)代碼
復(fù)制代碼 代碼如下:
<?php
setcookie("username","zhuzhao",time()+10);//設(shè)置cookis保存5秒
?>
復(fù)制代碼 代碼如下:
<?php
if(isset($_COOKIE["username"]))
{
echo $_COOKIE["username"];
}
else
{
echo "cookie沒有找到";
}
?>
相關(guān)文章
PHP PDOStatement::bindColumn講解
今天小編就為大家分享一篇關(guān)于PHP PDOStatement::bindColumn講解,小編覺得內(nèi)容挺不錯(cuò)的,現(xiàn)在分享給大家,具有很好的參考價(jià)值,需要的朋友一起跟隨小編來看看吧2019-01-01利用PHP創(chuàng)建動(dòng)態(tài)圖像
利用PHP創(chuàng)建動(dòng)態(tài)圖像...2006-10-10實(shí)現(xiàn)樹狀結(jié)構(gòu)的兩種方法
實(shí)現(xiàn)樹狀結(jié)構(gòu)的兩種方法...2006-10-10