에러 구문 좀 봐주세요...
Parse error: syntax error, unexpected T_VARIABLE, expecting ';' in /home/volbo/public_html/syndi/include/gnuboard4_euckr/include.bbs.move_update.php on line 30
신디케이션을 적용했는데요.
복사나 이동을 하면 이런 에러문구가뜨네요.
이것이 뭔 에러인지요?
for($i=0,$c=count($_POST['chk_bo_table']); $i<$c $i++) // 여기가 30번째줄입니다.
<?php
/**
* @file include.bbs.move_update.php
* @author sol (ngleader@gmail.com)
* @brief 글 등록/수정시 Syndication Ping
* gnuboard4/bbs/move_update.php 파일에 추가
* include '../syndi/include/gnuboard4_euckr/include.bbs.move_update.php';
*/
if(!defined("_GNUBOARD_")) return;
if($sw != "move" && $sw != "copy") return;
$syndi_dir = realpath(dirname(__FILE__) .'/../../');
// include config & Syndication Ping class
include_once $syndi_dir . '/config/site.config.php';
include_once $syndi_dir . '/libs/SyndicationHandler.class.php';
include_once $syndi_dir . '/libs/SyndicationPing.class.php';
if($sw == "copy")
{
$oPing = new SyndicationPing;
$oPing->setId(SyndicationHandler::getTag('channel', $bo_table));
$oPing->setType('article');
$oPing->request();
unset($oPing);
}
for($i=0,$c=count($_POST['chk_bo_table']); $i<$c $i++) // 여기가 30번째줄입니다.
{
$oPing = new SyndicationPing;
$oPing->setId(SyndicationHandler::getTag('channel', $_POST['chk_bo_table'][$i]));
$oPing->setType('article');
$oPing->request();
unset($oPing);
}
?>
근데 에러가 뜨지만 확인해보면 복사나 이동이 정상으로 됩니다.
신디케이션을 적용했는데요.
복사나 이동을 하면 이런 에러문구가뜨네요.
이것이 뭔 에러인지요?
for($i=0,$c=count($_POST['chk_bo_table']); $i<$c $i++) // 여기가 30번째줄입니다.
<?php
/**
* @file include.bbs.move_update.php
* @author sol (ngleader@gmail.com)
* @brief 글 등록/수정시 Syndication Ping
* gnuboard4/bbs/move_update.php 파일에 추가
* include '../syndi/include/gnuboard4_euckr/include.bbs.move_update.php';
*/
if(!defined("_GNUBOARD_")) return;
if($sw != "move" && $sw != "copy") return;
$syndi_dir = realpath(dirname(__FILE__) .'/../../');
// include config & Syndication Ping class
include_once $syndi_dir . '/config/site.config.php';
include_once $syndi_dir . '/libs/SyndicationHandler.class.php';
include_once $syndi_dir . '/libs/SyndicationPing.class.php';
if($sw == "copy")
{
$oPing = new SyndicationPing;
$oPing->setId(SyndicationHandler::getTag('channel', $bo_table));
$oPing->setType('article');
$oPing->request();
unset($oPing);
}
for($i=0,$c=count($_POST['chk_bo_table']); $i<$c $i++) // 여기가 30번째줄입니다.
{
$oPing = new SyndicationPing;
$oPing->setId(SyndicationHandler::getTag('channel', $_POST['chk_bo_table'][$i]));
$oPing->setType('article');
$oPing->request();
unset($oPing);
}
?>
근데 에러가 뜨지만 확인해보면 복사나 이동이 정상으로 됩니다.
댓글 4개
14년 전
for($i=0,$c=count($_POST['chk_bo_table']); $i<$c; $i++) // 여기가 30번째줄입니다.
이렇게 해보세요.
for에는 ; 이게 2개 들어가야 하는데 한개가 빠졌습니다.
이렇게 해보세요.
for에는 ; 이게 2개 들어가야 하는데 한개가 빠졌습니다.
14년 전
냠냠이님 감사합니다.
덕분에 잘되네요^^
덕분에 잘되네요^^
14년 전
근데 경고가 아니라 에러면 실행 자체가 안될텐데 이상하네요. ^^
잘 되신다니 다행입니다..
잘 되신다니 다행입니다..
14년 전
아래소스를 다지우고 해도 에러는 안나고 잘되드라구요..
뭔지 몰라서 지우지않고 냠냠이님께서 알려주데로하고 하니 잘되네요.^^;
for($i=0,$c=count($_POST['chk_bo_table']); $i<$c $i++) // 여기가 30번째줄입니다.
{
$oPing = new SyndicationPing;
$oPing->setId(SyndicationHandler::getTag('channel', $_POST['chk_bo_table'][$i]));
$oPing->setType('article');
$oPing->request();
unset($oPing);
}
뭔지 몰라서 지우지않고 냠냠이님께서 알려주데로하고 하니 잘되네요.^^;
for($i=0,$c=count($_POST['chk_bo_table']); $i<$c $i++) // 여기가 30번째줄입니다.
{
$oPing = new SyndicationPing;
$oPing->setId(SyndicationHandler::getTag('channel', $_POST['chk_bo_table'][$i]));
$oPing->setType('article');
$oPing->request();
unset($oPing);
}
게시글 목록
| 번호 | 제목 |
|---|---|
| 284508 | |
| 284499 | |
| 284492 | |
| 284490 | |
| 284484 | |
| 284481 | |
| 284478 | |
| 284476 | |
| 284474 | |
| 284472 | |
| 284470 | |
| 284458 | |
| 284457 | |
| 284454 | |
| 284453 | |
| 284447 | |
| 284446 | |
| 284444 | |
| 284441 | |
| 284440 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기