영카트5 lib/common.lib.php PCRE문제발생 도와주세요
거니밥사줘
10년 전
조회 2,857
영카트5 첨설치했는데요
오류가뜨네요
도와주세요
Warning: preg_split() [function.preg-split]: Compilation failed: this version of PCRE is not compiled with PCRE_UTF8 support at offset 0 in /home/tourcc/public_html/lib/common.lib.php on line 1604
해당위치
function cut_str($str, $len, $suffix="…")
{
$arr_str = preg_split("//u", $str, -1, PREG_SPLIT_NO_EMPTY);
$str_len = count($arr_str);
if ($str_len >= $len) {
$slice_str = array_slice($arr_str, 0, $len);
$str = join("", $slice_str);
return $str . ($str_len > $len ? $suffix : '');
} else {
$str = join("", $arr_str);
return $str;
}
}
오류가뜨네요
도와주세요
Warning: preg_split() [function.preg-split]: Compilation failed: this version of PCRE is not compiled with PCRE_UTF8 support at offset 0 in /home/tourcc/public_html/lib/common.lib.php on line 1604
해당위치
function cut_str($str, $len, $suffix="…")
{
$arr_str = preg_split("//u", $str, -1, PREG_SPLIT_NO_EMPTY);
$str_len = count($arr_str);
if ($str_len >= $len) {
$slice_str = array_slice($arr_str, 0, $len);
$str = join("", $slice_str);
return $str . ($str_len > $len ? $suffix : '');
} else {
$str = join("", $arr_str);
return $str;
}
}
댓글을 작성하려면 로그인이 필요합니다.
답변 1개
답변을 작성하려면 로그인이 필요합니다.
로그인