그누4 에러 좀 봐주세요.
본문
수고하십니다.
서버이전 후
버전때문에 에러가 나는거 같은데
eregi를 if(preg_match('/^%/', $witdh)){ 수정하라고 하시는데요.
아래의 것들은 어떻게 수정을 해야할까요?
응용을 해보려해도 까막눈이라 에러가 안잡히네요.
<?php
for ($i = 0; $i < count($list); $i++) {
$noimg = $latest_skin_path."/img/_noimg.gif";
$thumb = $thumb_path.'/'.$list[$i][wr_id];
$file = $list[$i][file][0][path] .'/'. $list[$i][file][0][file];
if ($list[$i][wr_id]) {
$thumb = thumbnail($file, $thumb_width, $thumb_height, 0, 1, $thumb_quality, 0, "", $filter, $noimg);
}
if ($edit_img = $list[$i]['wr_content']) {
if (eregi("data/cheditor4[^<>]*\.(gif|jp[e]?g|png|bmp)", $edit_img, $tmp)) {
$file = $g4[path].'/' . $tmp[0]; // 파일명
$thumb = thumbnail($file, $thumb_width, $thumb_height, 0, 1, $thumb_quality, 0, "", $filter, $noimg);
}
}
?>
function get_sock($url)
{
// host 와 uri 를 분리
if (preg_replace("http://([a-zA-Z0-9_\-\.]+)([^<]*)", $url, $res))
{
$host = $res[1];
$get = $res[2];
}
// 80번 포트로 소캣접속 시도
$fp = fsockopen ($host, 80, $errno, $errstr, 30);
if (!$fp)
{
die("$errstr ($errno)\n");
}
else
{
fputs($fp, "GET $get HTTP/1.0\r\n");
fputs($fp, "Host: $host\r\n");
fputs($fp, "\r\n");
// header 와 content 를 분리한다.
while (trim($buffer = fgets($fp,1024)) != "")
{
$header .= $buffer;
}
while (!feof($fp))
{
$buffer .= fgets($fp,1024);
}
}
fclose($fp);
// content 만 return 한다.
return $buffer;
}
header("Content-Type: text/html; charset=$g4[charset]");
$gmnow = gmdate("D, d M Y H:i:s") . " GMT";
header("Expires: 0"); // rfc2616 - Section 14.21
header("Last-Modified: " . $gmnow);
header("Cache-Control: no-store, no-cache, must-revalidate"); // HTTP/1.1
header("Cache-Control: pre-check=0, post-check=0, max-age=0"); // HTTP/1.1
header("Pragma: no-cache"); // HTTP/1.0
!-->!-->!-->
답변 2
eregi
단어를
preg_match
로 바꿔 보시고
또 발생하는 에러가 있다며 해당 메시지로 문의해 보세요.
말씀하신 부분은 버전으로 인해 오류 부분은 제작의뢰를 통해 수정을 하시는걸 권유드립니다.
답변을 작성하시기 전에 로그인 해주세요.