热门关键字:  ubuntu  分区  函数  Fedora  linux系统进程

当前位置 :| 主页>Linux教程>编程开发>PHP>

用cookies控制图片显示

来源: 作者: 时间:2008-05-30 Tag: 点击:
以下为引用的内容:
<?
header("Content-type: image/gif");
$reid = 1;
$reid2 = 2;
if (empty($Re))
{
SetCookie("Re",$reid, time()+(60*60*24*365));
readfile("mv1.gif");
}
elseif($Re==1)
{
SetCookie("Re",$reid2, time()+(60*60*24*365));
readfile("mv2.gif");
}
elseif($Re==2)
{
readfile("mv3.gif");
}
?>

最新评论共有 0 位网友发表了评论
发表评论
评论内容:不能超过250字,需审核,请自觉遵守互联网相关政策法规。
用户名: 密码:
匿名?
注册
栏目列表