<?php
if(empty($_COOKIE[‘baidu’]))
{
setcookie(‘baidu’,’baidu’);
header(“Location: php.php”);
}
else
{
header(“Location: p.php”);
}
?>
<?php
if(empty($_COOKIE[‘baidu’]))
{
setcookie(‘baidu’,’baidu’);
header(“Location: php.php”);
}
else
{
header(“Location: p.php”);
}
?>