스

구글 RSS(곱슬님이 올려주신플러그인질문요/.)

댓글 5개

값이 출력되는부분에

$title 이라고 예를들면

$title = str_replace("'","'",$title); 이라고 하시면됩니다
$item = array();
preg_match_all("/<item>(.*)<\/item>/iUs", $xml, $matchs);
for ($i=0, $max=count($matchs[1]); $i<$max; $i++) {
preg_match("/<title>(.*)<\/title>/iUs", $matchs[1][$i], $match);
$item[$i][title] = unhtmlspecialchars(trim($match[1]));
preg_match("/<link>(.*)<\/link>/iUs", $matchs[1][$i], $match);
$item[$i][link] = trim($match[1]);
preg_match("/img src=(.*) /iUs", $matchs[1][$i], $match);
$item[$i][img] = trim($match[1]);
}
return $item;
}
이부분이 값출력하는부분인거 같은데 어딜 바꿔주면 되나요..?ㅠㅠ
$item[$i][title] 이것 있는 바로 다음줄에

$item[$i][title] = str_replace("'","'",$item[$i][title]);

이렇게 추가하면됩니다
저기 그렇게 하면 아에 뉴스가 안나와버리는데..ㅠㅠ
아 사이트 내에 문제였네요.ㅎㅎ 답변 감사합니다..꾸벅..
댓글을 작성하시려면 로그인이 필요합니다.

그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기 기존 게시물은 열람만 가능합니다.

+
제목 글쓴이 날짜 조회
09-09-29 조회 1,068
09-09-29 조회 929
09-09-29 조회 1,123
09-09-29 조회 1,632
09-09-29 조회 1,424
09-09-29 조회 1,694
09-09-29 조회 1,133
09-09-29 조회 5,355
09-09-29 조회 957
09-09-29 조회 1,063
09-09-28 조회 881
09-09-28 조회 905
09-09-28 조회 1,265
09-09-28 조회 1,097
09-09-28 조회 1,489
09-09-28 조회 1,724
09-09-28 조회 1,558
09-09-28 조회 1,113
09-09-28 조회 1,631
09-09-28 조회 1,232