Error[2]: fopen(C:\phpStudy\bbs/./tmp/plugin_xn_search_model_search.func.php): failed to open stream: Invalid argument, File: C:\phpStudy\bbs\xiunophp\misc.func.php, Line: 980
File: C:\phpStudy\bbs\xiunophp\misc.func.php, Line: 980, fopen(C:\phpStudy\bbs/./tmp/plugin_xn_search_model_search.func.php , wb)
File: C:\phpStudy\bbs\model\plugin.func.php, Line: 30, file_put_contents_try(C:\phpStudy\bbs/./tmp/plugin_xn_search_model_search.func.php , '.$keyword.'', $s); } return $s; } function search_keyword_safe($s) { $s = str_replace(array('\'', '\\', '"', '%', '<', '>', '`', '*', '&', '#'), '', $s); $s = preg_replace('#\s+#', ' ', $s); $s = trim($s); //$s = preg_replace('#[^\w\-\x4e00-\x9fa5]+#i', '', $s); return $s; } // Chinese character unicode by axiuno@gmail.com function search_cn_encode($s) { // 对 UTF-8 字符的汉字进行编码,转化为 mysql 可以索引的 word $r = ''; // 替换特殊字符 $special_arr = array( '0' , '1' , '2' , '3' , '4' , '5' , '6' , '7' , '8' , '9' , 'A' , 'B' , 'C' , 'D' , 'E' , 'F' , 'G' , 'H' , 'I' , 'J' , 'K' , 'L' , 'M' , 'N' , 'O' , 'P' , 'Q' , 'R' , 'S' , 'T' , 'U' , 'V' , 'W' , 'X' , 'Y' , 'Z' , 'a' , 'b' , 'c' , 'd' , 'e' , 'f' , 'g' , 'h' , 'i' , 'j' , 'k' , 'l' , 'm' , 'n' , 'o' , 'p' , 'q' , 'r' , 's' , 't' , 'u' , 'v' , 'w' , 'x' , 'y' , 'z' , '-' , ' ' , ':' , '.' , ',' , '/' , '%' , '#' , '!' , '@' , '&' , '(' , ')' , '<' , '>' , '"' , ''' , '?' , '[' , ']' , '{' , '}' , '\' , '|' , '+' , '=' , '_' , '^' , '¥' , ' ̄' , '`', '《', '》', '【', '】', '〖', '〗', '『', '』', '我', '你', '不', '是', '的', '了', 'nbsp', ' ', ); $s = str_replace($special_arr, '', $s); $len = strlen($s); $f1 = intval(base_convert('10000000', 2, 10)); $f2 = intval(base_convert('11000000', 2, 10)); $f3 = intval(base_convert('11100000', 2, 10)); for($i = 0; $i < $len; $i++) { $o = ord($s[$i]); if($o < 0x80) { if(($o >= 48 && $o <= 57) || ($o >= 97 && $o <= 122) || $o == 0x20) { $r .= $s[$i]; // 0-9 a-z } elseif($o >= 65 && $o <= 90) { $r .= strtolower($s[$i]); // A-Z } else { $r .= ' '; } } else { if($i + 5 >= $len) break; // 校验是否为正常的 UTF-8 字符,在 PHP7 某些版本下 iconv() 会导致 nginx 出现 502 $b1 = ord($s[$i]); $b2 = ord($s[$i+1]); $b3 = ord($s[$i+2]); $b4 = ord($s[$i+3]); $b5 = ord($s[$i+4]); $b6 = ord($s[$i+5]); if( ($b1 & $f3) == $f3 && (($b2 & $f1) == $f1 || ($b2 & $f2) == $f2) && ($b3 & $f1) == $f1 && ($b4 & $f3) == $f3 && (($b5 & $f1) == $f1 || ($b5 & $f2) == $f2) && ($b6 & $f1) == $f1 ) { $z = $s[$i].$s[$i+1].$s[$i+2].$s[$i+3].$s[$i+4].$s[$i+5]; $i += 2; //$t = iconv('UTF-8', 'UCS-2', $z); //$r .= ' u'.bin2hex($t).' '; // uF1F2 $r .= ' '.$z.' '; // uF1F2 } else { continue; } } } $r = preg_replace('#\s\w{1}\s#', ' ', $r); $r = trim(preg_replace('#\s+#', ' ', $r)); return $r; } // Chinese character unicode by axiuno@gmail.com function search_cn_encode_by_word($s) { // 对 UTF-8 字符的汉字进行编码,转化为 mysql 可以索引的 word $r = ''; $len = strlen($s); $f1 = intval(base_convert('10000000', 2, 10)); $f2 = intval(base_convert('11000000', 2, 10)); $f3 = intval(base_convert('11100000', 2, 10)); for($i = 0; $i < $len; $i++) { $o = ord($s[$i]); if($o < 0x80) { if(($o >= 48 && $o <= 57) || ($o >= 97 && $o <= 122) || $o == 0x20) { $r .= $s[$i]; // 0-9 a-z } elseif($o >= 65 && $o <= 90) { $r .= strtolower($s[$i]); // A-Z } else { $r .= ' '; } } else { if($i + 2 >= $len) break; // 校验是否为正常的 UTF-8 字符,在 PHP7 某些版本下 iconv() 会导致 nginx 出现 502 $b1 = ord($s[$i]); $b2 = ord($s[$i+1]); $b3 = ord($s[$i+2]); if( ($b1 & $f3) == $f3 && (($b2 & $f1) == $f1 || ($b2 & $f2) == $f2) && ($b3 & $f1) == $f1 ) { $z = $s[$i].$s[$i+1].$s[$i+2]; $i += 2; $t = iconv('UTF-8', 'UCS-2', $z); $r .= ' u'.bin2hex($t).' '; // uF1F2 } else { continue; } } } $r = preg_replace('#\s\w{1}\s#', ' ', $r); $r = trim(preg_replace('#\s+#', ' ', $r)); return $r; } ?>)
File: C:\phpStudy\bbs\tmp\model.inc.php, Line: 39, _include(C:\phpStudy\bbs/plugin/xn_search/model/search.func.php)
File: C:\phpStudy\bbs\index.php, Line: 51, include(C:\phpStudy\bbs\tmp\model.inc.php)
Error[2]: Cannot modify header information - headers already sent by (output started at C:\phpStudy\bbs\xiunophp\misc.func.php:50), File: C:\phpStudy\bbs\tmp\model_session.func.php, Line: 66
File: C:\phpStudy\bbs\tmp\model_session.func.php, Line: 66, setcookie(cookie_test , , 1773409983 , )
File: C:\phpStudy\bbs\tmp\model_session.func.php, Line: 41, sess_new(nedo4sctea0c6ood37h19r5t00)
File: , Line: , sess_read(nedo4sctea0c6ood37h19r5t00)
File: C:\phpStudy\bbs\tmp\model_session.func.php, Line: 210, session_start()
File: C:\phpStudy\bbs\tmp\index.inc.php, Line: 7, sess_start()
File: C:\phpStudy\bbs\index.php, Line: 52, include(C:\phpStudy\bbs\tmp\index.inc.php)
Error[2]: session_start(): Cannot send session cache limiter - headers already sent (output started at C:\phpStudy\bbs\xiunophp\misc.func.php:50), File: C:\phpStudy\bbs\tmp\model_session.func.php, Line: 210
File: C:\phpStudy\bbs\tmp\model_session.func.php, Line: 210, session_start()
File: C:\phpStudy\bbs\tmp\index.inc.php, Line: 7, sess_start()
File: C:\phpStudy\bbs\index.php, Line: 52, include(C:\phpStudy\bbs\tmp\index.inc.php)
修车车
影子论坛 测试
发新帖
修车车
交流讨论

Processed Time:3.9419119358063