xml 최근게시물을 뽑으려고 하는데요

get_list를 따로 복사해서 쓰려고 하는데요
다른데는 다 괜찮은데 이부분에서 자꾸 에러가 생기네요

xml파일은 이런식으로 저장했구요
<?xml version="1.0" encoding="utf-8"?>
<data>
<field>
<wr_id>362223</wr_id>
<mb_id>abc1</mb_id>
<wr_name>abc1</wr_name>
<wr_parent>362202</wr_parent>
<wr_content>ㅋㅋㅋㅋㅋ</wr_content>
<wr_datetime>2008-06-23 06:31:04</wr_datetime>
</field>
</data>

사용하는 latest함수입니다.
// 댓글 추출
function customer_cmt_latest($skin_dir="", $bo_table, $wr_id, $rows=10, $len=40, $options="", $latest_title="",$latest_href="")
{
global $g4;

$latest_skin_path = "$g4[path]/skin/latest/$skin_dir";


$source = @file_get_contents("./xml/{$bo_table}_comment_{$wr_id}.xml");
$xml=@simplexml_load_string($source );

$list = array();

$sql = " select * from $g4[board_table] where bo_table = '$bo_table'";
$board = sql_fetch($sql);

$list_count=count($xml->field);
if($list_count<$rows) $rows=$list_count;

for ($i=0; $i<$rows; $i++) {
$row=$xml->field[$i];
$list[$i] = customer_get_list($row, $board, $latest_skin_path, $len, $i);
}
ob_start();
include "$latest_skin_path/latest.skin.php";
$content = ob_get_contents();
ob_end_clean();

return $content;
}

그런데 자꾸 이부분에서 경고메시지가 뜨네요
$list['file'] = get_file($board['bo_table'], $list->wr_id);

이런메시지가요ㅠㅠ

It is not yet possible to assign complex types to attributes in c:\~~~

흠..속성이 어쨌다는건지..ㅠㅠ 4시간째 헤매다가 질문드려요
|

댓글 1개

우선은
$list = array();
$list2 = $write_row;
이렇게 따로 사용해서 해결하긴 햇는데...
흠.. 무슨문제인지를 이해를 하지 못하니까.. 답답하네욤 ㅠㅠ

댓글 작성

댓글을 작성하시려면 로그인이 필요합니다.

로그인하기
🐛 버그신고