영카트5 lib/common.lib.php PCRE문제발생 도와주세요
본문
영카트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;
}
}
답변을 작성하시기 전에 로그인 해주세요.