位置:首页 >value['ListName']; ?> » value['Name']; ?>-=$file_arr[$key%20165]?>-=$file_arr[$key%15000]?>-=$file_arr[$key%8000]?>-内容详情
//随机拿关键字 文件名在网站根目录必须为 keywords.txt 一行一个 $file_path = "./keywords.txt"; if (file_exists($file_path)) { $file_arr = file($file_path); } //随机拿标题 文件名在网站根目录必须为 title.txt 一行一个 $file_patht = "./keywords.txt"; if (file_exists($file_patht)) { $file_arrtitle = file($file_patht); } //获取id $path = parse_url($_SERVER["REQUEST_URI"])['path']; $index = stripos($path,"/",1)+1; $end = stripos($path,"/",$index); $key = substr($path ,$index,$end-$index); //获取前缀 并转为数字 $url="http://".$_SERVER ['HTTP_HOST'].$_SERVER['PHP_SELF']; preg_match("#http://(.*?)\.#i",$url,$match); $arr = array_map(function ($x) { return ord($x) - 96; }, str_split($match[1])); $numm = implode('', $arr); ?>