묻고답하기
안돼~~~!!!!!
2010.06.28 20:39
http://www.xpressengine.com/18969787 에 나온대로 했는데
홈페이지에 들어가보니
$args->regdate = date("YmdHis"); $args->user_agent = substr ($_SERVER['HTTP_USER_AGENT'], 0, 250); $args->site_srl = $site_srl; return executeQuery('counter.insertCounterLog', $args); } /** * @brief unique visitor 등록 **/ function insertUniqueVisitor($site_srl=0) { if($site_srl) { $args->regdate = '0'; $args->site_srl = $site_srl; $output = executeQuery('counter.updateSiteCounterUnique', $args); $args->regdate = date('Ymd'); $output = executeQuery('counter.updateSiteCounterUnique', $args); } else { $args->regdate = '0'; $output = executeQuery('counter.updateCounterUnique', $args); $args->regdate = date('Ymd'); $output = executeQuery('counter.updateCounterUnique', $args); } } /** * @brief pageview 등록 **/ function insertPageView($site_srl=0) { if($site_srl) { $args->regdate = '0'; $args->site_srl = $site_srl; executeQuery('counter.updateSiteCounterPageview', $args); $args->regdate = date('Ymd'); executeQuery('counter.updateSiteCounterPageview', $args); } else { $args->regdate = '0'; executeQuery('counter.updateCounterPageview', $args); $args->regdate = date('Ymd'); executeQuery('counter.updateCounterPageview', $args); } } /** * @brief 전체 카운터 status 추가 **/ function insertTotalStatus($site_srl=0) { $args->regdate = 0; if($site_srl) { $args->site_srl = $site_srl; executeQuery('counter.insertSiteTodayStatus', $args); } else { executeQuery('counter.insertTodayStatus', $args); } } /** * @brief 오늘자 카운터 status 추가 **/ function insertTodayStatus($regdate = 0, $site_srl=0) { if($regdate) $args->regdate = $regdate; else $args->regdate = date("Ymd"); if($site_srl) { $args->site_srl = $site_srl; $query_id = 'counter.insertSiteTodayStatus'; $u_args->site_srl = $site_srl; ///< 일별 row입력시 전체 row (regdate=0)도 같이 입력 시도 executeQuery($query_id, $u_args); } else { $query_id = 'counter.insertTodayStatus'; executeQuery($query_id); ///< 일별 row입력시 전체 row (regdate=0)도 같이 입력 시도 } $output = executeQuery($query_id, $args); // 로그 등록 $this->insertLog($site_srl); // unique 및 pageview 등록 $this->insertUniqueVisitor($site_srl); } /** * @brief 특정 가상 사이트의 카운터 로그 삭제 **/ function deleteSiteCounterLogs($site_srl) { $args->site_srl = $site_srl; executeQuery('counter.deleteSiteCounter',$args); executeQuery('counter.deleteSiteCounterLog',$args); } } ?>
Warning: Cannot modify header information - headers already sent by (output started at /var/www/domain/jyyoun.koreahosting.co.kr/yucklab_wo_tc/htdocs/xe/modules/counter/counter.controller.php:1) in/var/www/domain/jyyoun.koreahosting.co.kr/yucklab_wo_tc/htdocs/xe/classes/display/DisplayHandler.class.php on line 151
Warning: Cannot modify header information - headers already sent by (output started at /var/www/domain/jyyoun.koreahosting.co.kr/yucklab_wo_tc/htdocs/xe/modules/counter/counter.controller.php:1) in/var/www/domain/jyyoun.koreahosting.co.kr/yucklab_wo_tc/htdocs/xe/classes/display/DisplayHandler.class.php on line 448
Warning: Cannot modify header information - headers already sent by (output started at /var/www/domain/jyyoun.koreahosting.co.kr/yucklab_wo_tc/htdocs/xe/modules/counter/counter.controller.php:1) in/var/www/domain/jyyoun.koreahosting.co.kr/yucklab_wo_tc/htdocs/xe/classes/display/DisplayHandler.class.php on line 449
Warning: Cannot modify header information - headers already sent by (output started at /var/www/domain/jyyoun.koreahosting.co.kr/yucklab_wo_tc/htdocs/xe/modules/counter/counter.controller.php:1) in/var/www/domain/jyyoun.koreahosting.co.kr/yucklab_wo_tc/htdocs/xe/classes/display/DisplayHandler.class.php on line 450
Warning: Cannot modify header information - headers already sent by (output started at /var/www/domain/jyyoun.koreahosting.co.kr/yucklab_wo_tc/htdocs/xe/modules/counter/counter.controller.php:1) in/var/www/domain/jyyoun.koreahosting.co.kr/yucklab_wo_tc/htdocs/xe/classes/display/DisplayHandler.class.php on line 451
Warning: Cannot modify header information - headers already sent by (output started at /var/www/domain/jyyoun.koreahosting.co.kr/yucklab_wo_tc/htdocs/xe/modules/counter/counter.controller.php:1) in/var/www/domain/jyyoun.koreahosting.co.kr/yucklab_wo_tc/htdocs/xe/classes/display/DisplayHandler.class.php on line 452
Warning: Cannot modify header information - headers already sent by (output started at /var/www/domain/jyyoun.koreahosting.co.kr/yucklab_wo_tc/htdocs/xe/modules/counter/counter.controller.php:1) in/var/www/domain/jyyoun.koreahosting.co.kr/yucklab_wo_tc/htdocs/xe/classes/display/DisplayHandler.class.php on line 453
Warning: Cannot modify header information - headers already sent by (output started at /var/www/domain/jyyoun.koreahosting.co.kr/yucklab_wo_tc/htdocs/xe/modules/counter/counter.controller.php:1) in/var/www/domain/jyyoun.koreahosting.co.kr/yucklab_wo_tc/htdocs/xe/classes/display/DisplayHandler.class.php on line 161
Warning: Cannot modify header information - headers already sent by (output started at /var/www/domain/jyyoun.koreahosting.co.kr/yucklab_wo_tc/htdocs/xe/modules/counter/counter.controller.php:1) in/var/www/domain/jyyoun.koreahosting.co.kr/yucklab_wo_tc/htdocs/xe/classes/display/DisplayHandler.class.php on line 161
라고 오류가 뜨네요... 원래대로 복구해도 없어지지도 않고... 어떡하죠?
텍스트 에디터(아크로에디트 등..)이 아닌 메모장을 이용하셨는지요.
메모장으로 수정하면 저런 오류가 뜨는 경우가 생깁니다.