소스분석하는데 도저히 모르겠습니다. 정보
소스분석하는데 도저히 모르겠습니다.본문
웹진소스
$i==i <- 여기서 $i 변수가 i랑 같으면 이라는데 i가 도대체 뭐죠?
아래는 웹진 원본소스입니다.
-----------------------------------------------------------
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
$elpisbuilder1=120;
$elpisbuilder2=100;
$elpisbuilder3=$subject_len;
$elpisbuilder2=100;
$elpisbuilder3=$subject_len;
if (!$elpisbuilder1) alert("해당 게시판 설정 : 여분 필드 4 에 목록에서 보여질 이미지의 폭을 설정하십시오. (픽셀 단위)");
if (!$elpisbuilder2) alert("해당 게시판 설정 : 여분 필드 5 에 목록에서 보여질 이미지의 질(quality)을 비율로 설정하십시오. (100 이하)");
if (!$elpisbuilder3) alert("게시판 설정 : 여분 필드 8 에 목록에서 내용길이를 입력하십시오.");
if (!function_exists("imagecopyresampled")) alert("GD 2.0.1 이상 버전이 설치되어 있어야 사용할 수 있는 스킨 입니다.");
if (!$elpisbuilder2) alert("해당 게시판 설정 : 여분 필드 5 에 목록에서 보여질 이미지의 질(quality)을 비율로 설정하십시오. (100 이하)");
if (!$elpisbuilder3) alert("게시판 설정 : 여분 필드 8 에 목록에서 내용길이를 입력하십시오.");
if (!function_exists("imagecopyresampled")) alert("GD 2.0.1 이상 버전이 설치되어 있어야 사용할 수 있는 스킨 입니다.");
$data_path = $g4[path]."/data/file/$bo_table";
$thumb_path = $data_path.'/thumb100';
$thumb_path = $data_path.'/thumb100';
@mkdir($thumb_path, 0707);
@chmod($thumb_path, 0707);
@chmod($thumb_path, 0707);
?>
<!-- 최신글 제목 -->
<table width="100%" height="28" border="0" align="center" cellpadding="0" cellspacing="0">
<tr><td>
<table width="100%" height="28" border="0" align="center" cellpadding="0" cellspacing="0">
<tr><td>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="10"><img src="<?=$latest_skin_path?>/img/not_bt_box_left.gif" width="10" height="28"></td>
<td><table width="100%" height="28" border="0" cellpadding="0" cellspacing="0">
<tr>
<td background="<?=$latest_skin_path?>/img/not_bt_box_center.gif"><strong><a href='<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>'><font color="WHITE"><?=$board[bo_subject]?></font></a></strong></td>
<td width="110" background="<?=$latest_skin_path?>/img/not_bt_box_center1.gif"> </td>
</tr>
</table></td>
<td width="46"><a href='<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>'><img src="<?=$latest_skin_path?>/img/not_bt_box_more.gif" width="46" height="28" border="0"></a></td>
</tr>
</table>
<tr>
<td width="10"><img src="<?=$latest_skin_path?>/img/not_bt_box_left.gif" width="10" height="28"></td>
<td><table width="100%" height="28" border="0" cellpadding="0" cellspacing="0">
<tr>
<td background="<?=$latest_skin_path?>/img/not_bt_box_center.gif"><strong><a href='<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>'><font color="WHITE"><?=$board[bo_subject]?></font></a></strong></td>
<td width="110" background="<?=$latest_skin_path?>/img/not_bt_box_center1.gif"> </td>
</tr>
</table></td>
<td width="46"><a href='<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>'><img src="<?=$latest_skin_path?>/img/not_bt_box_more.gif" width="46" height="28" border="0"></a></td>
</tr>
</table>
</td></tr>
</table>
</table>
<!-- <?=$board[bo_subject]?> (<?=$board[bo_table]?>) 최신글 시작 -->
<table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td>
<? for ($i=0; $i<count($list); $i++) { ?>
<? if ($i==i) { ?>
<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
<!-- <tr><td bgcolor="#EEEEEE" width="100%" height="1"></td></tr> -->
<tr><td height="7"></td></tr>
<tr>
<?
{
if ($i > 0)
echo "<tr><td width=20> </td></tr>";
<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
<!-- <tr><td bgcolor="#EEEEEE" width="100%" height="1"></td></tr> -->
<tr><td height="7"></td></tr>
<tr>
<?
{
if ($i > 0)
echo "<tr><td width=20> </td></tr>";
$img = "<img src='$latest_skin_path/img/no_image.gif' border=0 title='이미지 없음'>";
$thumb = $thumb_path.'/'.$list[$i][wr_id];
if (!file_exists($thumb))
{
$file = $list[$i][file][0][path] .'/'. $list[$i][file][0][file];
if (preg_match("/\.(jp[e]?g|gif|png)$/i", $file) && file_exists($file))
{
$size = getimagesize($file);
if ($size[2] == 1)
$src = imagecreatefromgif($file);
else if ($size[2] == 2)
$src = imagecreatefromjpeg($file);
else if ($size[2] == 3)
$src = imagecreatefrompng($file);
else
break;
$thumb = $thumb_path.'/'.$list[$i][wr_id];
if (!file_exists($thumb))
{
$file = $list[$i][file][0][path] .'/'. $list[$i][file][0][file];
if (preg_match("/\.(jp[e]?g|gif|png)$/i", $file) && file_exists($file))
{
$size = getimagesize($file);
if ($size[2] == 1)
$src = imagecreatefromgif($file);
else if ($size[2] == 2)
$src = imagecreatefromjpeg($file);
else if ($size[2] == 3)
$src = imagecreatefrompng($file);
else
break;
$rate = $elpisbuilder1 / $size[0];
$height = (int)($size[1] * $rate);
$height = (int)($size[1] * $rate);
$dst = imagecreatetruecolor($elpisbuilder1, $height);
imagecopyresampled($dst, $src, 0, 0, 0, 0, $elpisbuilder1, $height, $size[0], $size[1]);
imagejpeg($dst, $thumb_path.'/'.$list[$i][wr_id], $elpisbuilder2);
chmod($thumb_path.'/'.$list[$i][wr_id], 0606);
}
}
imagecopyresampled($dst, $src, 0, 0, 0, 0, $elpisbuilder1, $height, $size[0], $size[1]);
imagejpeg($dst, $thumb_path.'/'.$list[$i][wr_id], $elpisbuilder2);
chmod($thumb_path.'/'.$list[$i][wr_id], 0606);
}
}
if (file_exists($thumb))
$img = "<img src='$thumb' border=0>";
$img = "<img src='$thumb' border=0>";
$href = "$g4[bbs_path]/board.php?bo_table=$bo_table";
$subject = "<span $style>".cut_str($list[$i][subject],1000)."</span>";
$wr_content = "<span $style>".cut_str($list[$i][wr_content],56)."</span>";
// html 태그 제거
$wr_content = strip_tags($wr_content);
$subject = "<span $style>".cut_str($list[$i][subject],1000)."</span>";
$wr_content = "<span $style>".cut_str($list[$i][wr_content],56)."</span>";
// html 태그 제거
$wr_content = strip_tags($wr_content);
echo <<<HEREDOC
<td style='word-break:break-all;' valign="top" align="left">
<table width='{$td_width}%' cellspacing='0' cellpadding='0' border='0'>
<tr>
<td width='100' height='75' align='center' valign='top'>
<table border='0' width='100' cellpadding='3' cellspacing='1' bgcolor='#999999'>
<tr>
<td bgcolor='white'>
<div style='width:100px; height:75px; position: relative; overflow:hidden;' align=center><a href='{$list[$i][href]}'>{$img}</a></div>
</td>
</tr>
</table>
</td>
<td>
</td>
<td valign='top'>
<table width='{$td_width}%' cellspacing='0' cellpadding='0' border='0'>
<tr>
<td height='20' style='padding:0 10' valign='top'><a href='{$list[$i][href]}'><strong><font color='#6A6A6A'>{$subject}</font></strong></a>{$comment_cnt} {$list[$i][icon_new]}</td>
</tr>
<td style='word-break:break-all;' valign="top" align="left">
<table width='{$td_width}%' cellspacing='0' cellpadding='0' border='0'>
<tr>
<td width='100' height='75' align='center' valign='top'>
<table border='0' width='100' cellpadding='3' cellspacing='1' bgcolor='#999999'>
<tr>
<td bgcolor='white'>
<div style='width:100px; height:75px; position: relative; overflow:hidden;' align=center><a href='{$list[$i][href]}'>{$img}</a></div>
</td>
</tr>
</table>
</td>
<td>
</td>
<td valign='top'>
<table width='{$td_width}%' cellspacing='0' cellpadding='0' border='0'>
<tr>
<td height='20' style='padding:0 10' valign='top'><a href='{$list[$i][href]}'><strong><font color='#6A6A6A'>{$subject}</font></strong></a>{$comment_cnt} {$list[$i][icon_new]}</td>
</tr>
<tr>
<td style='padding:0 10' valign='top'><a href='{$list[$i][href]}'><font color='#6A6A6A'>{$wr_content}</font> <!-- <font color='#999999'>[{$list[$i][datetime]}]</font> --></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
HEREDOC;
}
?>
</tr>
</table>
<? } ?>
<td style='padding:0 10' valign='top'><a href='{$list[$i][href]}'><font color='#6A6A6A'>{$wr_content}</font> <!-- <font color='#999999'>[{$list[$i][datetime]}]</font> --></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
HEREDOC;
}
?>
</tr>
</table>
<? } ?>
<? if ($i==999) { ?>
<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<?
{
if ($i > 0)
echo "<tr><td width=20 height=7></td></tr>";
<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<?
{
if ($i > 0)
echo "<tr><td width=20 height=7></td></tr>";
$img = "<img src='$latest_skin_path/img/no_image.gif' border=0 title='이미지 없음'>";
$thumb = $thumb_path.'/'.$list[$i][wr_id];
if (!file_exists($thumb))
{
$file = $list[$i][file][0][path] .'/'. $list[$i][file][0][file];
if (preg_match("/\.(jp[e]?g|gif|png)$/i", $file) && file_exists($file))
{
$size = getimagesize($file);
if ($size[2] == 1)
$src = imagecreatefromgif($file);
else if ($size[2] == 2)
$src = imagecreatefromjpeg($file);
else if ($size[2] == 3)
$src = imagecreatefrompng($file);
else
break;
$thumb = $thumb_path.'/'.$list[$i][wr_id];
if (!file_exists($thumb))
{
$file = $list[$i][file][0][path] .'/'. $list[$i][file][0][file];
if (preg_match("/\.(jp[e]?g|gif|png)$/i", $file) && file_exists($file))
{
$size = getimagesize($file);
if ($size[2] == 1)
$src = imagecreatefromgif($file);
else if ($size[2] == 2)
$src = imagecreatefromjpeg($file);
else if ($size[2] == 3)
$src = imagecreatefrompng($file);
else
break;
$rate = $elpisbuilder1 / $size[0];
$height = (int)($size[1] * $rate);
$height = (int)($size[1] * $rate);
$dst = imagecreatetruecolor($elpisbuilder1, $height);
imagecopyresampled($dst, $src, 0, 0, 0, 0, $elpisbuilder1, $height, $size[0], $size[1]);
imagejpeg($dst, $thumb_path.'/'.$list[$i][wr_id], $elpisbuilder2);
chmod($thumb_path.'/'.$list[$i][wr_id], 0606);
}
}
imagecopyresampled($dst, $src, 0, 0, 0, 0, $elpisbuilder1, $height, $size[0], $size[1]);
imagejpeg($dst, $thumb_path.'/'.$list[$i][wr_id], $elpisbuilder2);
chmod($thumb_path.'/'.$list[$i][wr_id], 0606);
}
}
if (file_exists($thumb))
$img = "<img src='$thumb' border=0>";
$img = "<img src='$thumb' border=0>";
$href = "$g4[bbs_path]/board.php?bo_table=$bo_table";
$subject = "<span $style>".cut_str($list[$i][subject],1000)."</span>";
$wr_content = "<span $style>".cut_str($list[$i][wr_content],$elpisbuilder3)."</span>";
$subject = "<span $style>".cut_str($list[$i][subject],1000)."</span>";
$wr_content = "<span $style>".cut_str($list[$i][wr_content],$elpisbuilder3)."</span>";
echo <<<HEREDOC
<td style='word-break:break-all;' valign="top" align="left">
<table width='{$td_width}%' cellspacing='0' cellpadding='0' border='0'>
<tr>
<td width='100' height='75' align='center' valign='top'>
<table border='0' width='100' cellpadding='3' cellspacing='1' bgcolor='#999999'>
<tr>
<td bgcolor='white'>
<div style='width:100px; height:75px; position: relative; overflow:hidden;' align=center><a href='{$list[$i][href]}'>{$img}</a></div>
</td>
</tr>
</table>
</td>
<td>
</td>
<td style='word-break:break-all;' valign="top" align="left">
<table width='{$td_width}%' cellspacing='0' cellpadding='0' border='0'>
<tr>
<td width='100' height='75' align='center' valign='top'>
<table border='0' width='100' cellpadding='3' cellspacing='1' bgcolor='#999999'>
<tr>
<td bgcolor='white'>
<div style='width:100px; height:75px; position: relative; overflow:hidden;' align=center><a href='{$list[$i][href]}'>{$img}</a></div>
</td>
</tr>
</table>
</td>
<td>
</td>
<td valign='top'>
<table width='{$td_width}%' cellspacing='0' cellpadding='0' border='0'>
<tr>
<td height='20' style='padding:0 10' valign='top'><a href='{$list[$i][href]}'><strong><font color='#6A6A6A'>{$subject}</font></strong></a>{$comment_cnt} {$list[$i][icon_new]}</td>
</tr>
<table width='{$td_width}%' cellspacing='0' cellpadding='0' border='0'>
<tr>
<td height='20' style='padding:0 10' valign='top'><a href='{$list[$i][href]}'><strong><font color='#6A6A6A'>{$subject}</font></strong></a>{$comment_cnt} {$list[$i][icon_new]}</td>
</tr>
<tr>
<td style='padding:0 10' valign='top'><a href='{$list[$i][href]}'><font color='#6A6A6A'>{$wr_content}</font> <!-- <font color='#999999'>[{$list[$i][datetime]}]</font> --></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
HEREDOC;
}
?>
</tr>
</table>
<? } ?>
<td style='padding:0 10' valign='top'><a href='{$list[$i][href]}'><font color='#6A6A6A'>{$wr_content}</font> <!-- <font color='#999999'>[{$list[$i][datetime]}]</font> --></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
HEREDOC;
}
?>
</tr>
</table>
<? } ?>
<? if ($i==999) { ?>
<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<?
{
if ($i > 0)
echo "<tr><td width=20 height=7></td></tr>";
<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<?
{
if ($i > 0)
echo "<tr><td width=20 height=7></td></tr>";
$img = "<img src='$latest_skin_path/img/no_image.gif' border=0 title='이미지 없음'>";
$thumb = $thumb_path.'/'.$list[$i][wr_id];
if (!file_exists($thumb))
{
$file = $list[$i][file][0][path] .'/'. $list[$i][file][0][file];
if (preg_match("/\.(jp[e]?g|gif|png)$/i", $file) && file_exists($file))
{
$size = getimagesize($file);
if ($size[2] == 1)
$src = imagecreatefromgif($file);
else if ($size[2] == 2)
$src = imagecreatefromjpeg($file);
else if ($size[2] == 3)
$src = imagecreatefrompng($file);
else
break;
$thumb = $thumb_path.'/'.$list[$i][wr_id];
if (!file_exists($thumb))
{
$file = $list[$i][file][0][path] .'/'. $list[$i][file][0][file];
if (preg_match("/\.(jp[e]?g|gif|png)$/i", $file) && file_exists($file))
{
$size = getimagesize($file);
if ($size[2] == 1)
$src = imagecreatefromgif($file);
else if ($size[2] == 2)
$src = imagecreatefromjpeg($file);
else if ($size[2] == 3)
$src = imagecreatefrompng($file);
else
break;
$rate = $elpisbuilder1 / $size[0];
$height = (int)($size[1] * $rate);
$height = (int)($size[1] * $rate);
$dst = imagecreatetruecolor($elpisbuilder1, $height);
imagecopyresampled($dst, $src, 0, 0, 0, 0, $elpisbuilder1, $height, $size[0], $size[1]);
imagejpeg($dst, $thumb_path.'/'.$list[$i][wr_id], $elpisbuilder2);
chmod($thumb_path.'/'.$list[$i][wr_id], 0606);
}
}
imagecopyresampled($dst, $src, 0, 0, 0, 0, $elpisbuilder1, $height, $size[0], $size[1]);
imagejpeg($dst, $thumb_path.'/'.$list[$i][wr_id], $elpisbuilder2);
chmod($thumb_path.'/'.$list[$i][wr_id], 0606);
}
}
if (file_exists($thumb))
$img = "<img src='$thumb' border=0>";
$img = "<img src='$thumb' border=0>";
$href = "$g4[bbs_path]/board.php?bo_table=$bo_table";
$subject = "<span $style>".cut_str($list[$i][subject],1000)."</span>";
$wr_content = "<span $style>".cut_str($list[$i][wr_content],$elpisbuilder3)."</span>";
$subject = "<span $style>".cut_str($list[$i][subject],1000)."</span>";
$wr_content = "<span $style>".cut_str($list[$i][wr_content],$elpisbuilder3)."</span>";
echo <<<HEREDOC
<td style='word-break:break-all;' valign="top" align="left">
<table width='{$td_width}%' cellspacing='0' cellpadding='0' border='0'>
<tr>
<td width='100' height='75' align='center' valign='top'>
<table border='0' width='100' cellpadding='3' cellspacing='1' bgcolor='#999999'>
<tr>
<td bgcolor='white'>
<div style='width:100px; height:75px; position: relative; overflow:hidden;' align=center><a href='{$list[$i][href]}'>{$img}</a></div>
</td>
</tr>
</table>
</td>
<td>
</td>
<td style='word-break:break-all;' valign="top" align="left">
<table width='{$td_width}%' cellspacing='0' cellpadding='0' border='0'>
<tr>
<td width='100' height='75' align='center' valign='top'>
<table border='0' width='100' cellpadding='3' cellspacing='1' bgcolor='#999999'>
<tr>
<td bgcolor='white'>
<div style='width:100px; height:75px; position: relative; overflow:hidden;' align=center><a href='{$list[$i][href]}'>{$img}</a></div>
</td>
</tr>
</table>
</td>
<td>
</td>
<td valign='top'>
<table width='{$td_width}%' cellspacing='0' cellpadding='0' border='0'>
<tr>
<td height='20' style='padding:0 10' valign='top'><a href='{$list[$i][href]}'><strong><font color='#6A6A6A'>{$subject}</font></strong></a>{$comment_cnt} {$list[$i][icon_new]}</td>
</tr>
<table width='{$td_width}%' cellspacing='0' cellpadding='0' border='0'>
<tr>
<td height='20' style='padding:0 10' valign='top'><a href='{$list[$i][href]}'><strong><font color='#6A6A6A'>{$subject}</font></strong></a>{$comment_cnt} {$list[$i][icon_new]}</td>
</tr>
<tr>
<td style='padding:0 10' valign='top'><a href='{$list[$i][href]}'><font color='#6A6A6A'>{$wr_content}</font> <!-- <font color='#999999'>[{$list[$i][datetime]}]</font> --></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
HEREDOC;
}
?>
</tr>
<tr><td height="7"></td></tr>
<tr><td background="<?=$latest_skin_path?>/img/btn_line_bg.gif" width="520" height="1"></td></tr>
<tr><td height="7"></td></tr>
</table>
<? } ?>
<td style='padding:0 10' valign='top'><a href='{$list[$i][href]}'><font color='#6A6A6A'>{$wr_content}</font> <!-- <font color='#999999'>[{$list[$i][datetime]}]</font> --></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
HEREDOC;
}
?>
</tr>
<tr><td height="7"></td></tr>
<tr><td background="<?=$latest_skin_path?>/img/btn_line_bg.gif" width="520" height="1"></td></tr>
<tr><td height="7"></td></tr>
</table>
<? } ?>
<? if ($i<1) { ?>
<? } else { ?>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20" height="20" align="center" valign="middle"><img src="<?=$latest_skin_path?>/img/board_icon.gif" width="9" height="13"></td>
<td style='word-break:break-all;'>
<?
echo $list[$i][icon_reply] . " ";
echo "<a href='{$list[$i][href]}'>";
if ($list[$i][is_notice])
echo "<font style='font-family:돋움; font-size:9pt; color:#2C88B9;'><strong>{$list[$i][subject]}</strong></font>";
else
echo "<font style='font-family:돋움; font-size:9pt; color:#6A6A6A;'>{$list[$i][subject]}</font>";
echo "</a>";
<? } else { ?>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20" height="20" align="center" valign="middle"><img src="<?=$latest_skin_path?>/img/board_icon.gif" width="9" height="13"></td>
<td style='word-break:break-all;'>
<?
echo $list[$i][icon_reply] . " ";
echo "<a href='{$list[$i][href]}'>";
if ($list[$i][is_notice])
echo "<font style='font-family:돋움; font-size:9pt; color:#2C88B9;'><strong>{$list[$i][subject]}</strong></font>";
else
echo "<font style='font-family:돋움; font-size:9pt; color:#6A6A6A;'>{$list[$i][subject]}</font>";
echo "</a>";
if ($list[$i][comment_cnt])
echo " <a href=\"{$list[$i][comment_href]}\"><span style='font-family:돋움; font-size:8pt; color:#9A9A9A;'>{$list[$i][comment_cnt]}</span></a>";
echo " <a href=\"{$list[$i][comment_href]}\"><span style='font-family:돋움; font-size:8pt; color:#9A9A9A;'>{$list[$i][comment_cnt]}</span></a>";
// if ($list[$i]['link']['count']) { echo "[{$list[$i]['link']['count']}]"; }
// if ($list[$i]['file']['count']) { echo "<{$list[$i]['file']['count']}>"; }
// if ($list[$i]['file']['count']) { echo "<{$list[$i]['file']['count']}>"; }
echo " " . $list[$i][icon_new];
?>
</td>
<td align=right width=70><font style=font-size:8pt; color=#999999>[<?=$list[$i][datetime]?>]</font></td>
<td width=15></td>
</tr>
</table>
<? } ?>
?>
</td>
<td align=right width=70><font style=font-size:8pt; color=#999999>[<?=$list[$i][datetime]?>]</font></td>
<td width=15></td>
</tr>
</table>
<? } ?>
<? } ?>
</td></tr></table>
<!-- <?=$board[bo_subject]?> (<?=$board[bo_table]?>) 최신글 끝 -->
</td></tr></table>
<!-- <?=$board[bo_subject]?> (<?=$board[bo_table]?>) 최신글 끝 -->
댓글 전체

카운트 리스트 입니다.
<? for ($i=0; $i<count($list); $i++) { ?>
<? if ($i==i) { ?>
<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
<!-- <tr><td bgcolor="#EEEEEE" width="100%" height="1"></td></tr> -->
<tr><td height="7"></td></tr>
<tr>
부분에서 카운트를 0부터 시작합니다
그리고 2번째 게시물(실질적으론 $i 1 카운트가 0부터 시작하기 때문)에서
그 다음줄의 내용을 내보내는거죠
<? for ($i=0; $i<count($list); $i++) { ?>
<? if ($i==i) { ?>
<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
<!-- <tr><td bgcolor="#EEEEEE" width="100%" height="1"></td></tr> -->
<tr><td height="7"></td></tr>
<tr>
부분에서 카운트를 0부터 시작합니다
그리고 2번째 게시물(실질적으론 $i 1 카운트가 0부터 시작하기 때문)에서
그 다음줄의 내용을 내보내는거죠
감사합니다.
저도 궁금해 하던건데요.
절대 태클거는 것은 아닙니다.
소스분석이랍시고 해보면 연관성을 찾을 수 없는 것들이 많더군요.
질문내용은 i 에 대한 질문인데요?
답변말씀처럼 '그 다음줄의 내용을 내보내는거라면' - 그 내용이 어디에 정의되어 있죠.
예를 들어
i=$i+1; 이라든지, i = 1; 이라든지
이런게 있어야 되는것은 아닌지요?
아니면
if($i == i ); 이 문구는
처음에 $i가 0 이니까,i에는1로 대입하고 $i가 1이면 i에는 2를 대입하고...이렇게 알고만 있으면 되는지요?
그런데,그게 어디에 정의되어있는지????
저도 궁금해 하던건데요.
절대 태클거는 것은 아닙니다.
소스분석이랍시고 해보면 연관성을 찾을 수 없는 것들이 많더군요.
질문내용은 i 에 대한 질문인데요?
답변말씀처럼 '그 다음줄의 내용을 내보내는거라면' - 그 내용이 어디에 정의되어 있죠.
예를 들어
i=$i+1; 이라든지, i = 1; 이라든지
이런게 있어야 되는것은 아닌지요?
아니면
if($i == i ); 이 문구는
처음에 $i가 0 이니까,i에는1로 대입하고 $i가 1이면 i에는 2를 대입하고...이렇게 알고만 있으면 되는지요?
그런데,그게 어디에 정의되어있는지????

감사합니다.
올려주신 예문에는 $i=1 이라고 정의되어있는데요.
위의질문소스에는 그게 안 보입니다.
아직도 위의 질문처럼 i 가 무엇인지 아시는 그냥 가시지 마시고 가르켜주세요.
올려주신 예문에는 $i=1 이라고 정의되어있는데요.
위의질문소스에는 그게 안 보입니다.
아직도 위의 질문처럼 i 가 무엇인지 아시는 그냥 가시지 마시고 가르켜주세요.