时间:2021-07-01 10:21:17 帮助过:24人阅读
'; echo '
下一页'; if(isset($_COOKIE['his'])) { //echo $_COOKIE['his'];exit; $data = unserialize($_COOKIE['his']); $url = $_SERVER['REQUEST_URI']; $data[] = $url; $data = array_unique($data); if(count($data) >10) { array_shift($data); } $urls = serialize($data); setcookie('his',$urls,time()*2*24*3600); } else { $url = $_SERVER['REQUEST_URI']; $data[] = $url; $urls = serialize($data); setcookie('his',$urls,time()*2*24*3600); } ?>
Notice: unserialize() [function.unserialize]: Error at offset 9 of 41 bytes in D:\server\apache\www\20120413\history.php on line 16