오늘은 대한입니다.
sun's longitude:299 34 20.82 
· 자유게시판 · 묻고답하기 · 알파문서 · RPMS list
· 사용자문서 · 팁/FAQ모음 · 리눅스Links · 자료실
· 서버정보 · 운영자 · Books/FAQ · FreeBSD
/board/read.php:소스보기  

질문과 답변 게시판입니다.

현재 실시간으로 이곳 서버의 설정파일(몇개)를 보여주고 있습니다.
서버의 설정내용에 관한 질문은 먼저 이곳 서버의 설정내용을 참고하시길 바랍니다.

[*** 쓰기 금지단어 패턴 ***]
글 본문 중간에 업로드할 이미지를 추가하는 방법 : @@이미지이름@@
ex) @@foo.gif@@
1706 번 글의 답장글: Re: sysinfo에서 에러 나거든요, 좀 봐주세요.
글쓴이: 산이 [홈페이지] 글쓴날: 2003년 10월 10일 04:41:00 금(새벽) 조회: 839
class.utils.php.txt012 KB(11,911 Bytes) 파일명: class.utils.php.txt

[최진형]님이 남기신 글:

>-----------------------------------------
>답변자가 기본적으로 참고할 내용입니다.
>- 배포판(옵션)    :  한컴 리눅스 2.2
>- 커널버전(옵션)
  :  Kernel 2.4.13-1hl
>- 데몬버전(예:apache
 1.3.27) : 
>- 데몬설치유형(RPM/컴파일/기타)
 : 
>-----------------------------------------
>
>한컴 리눅스 2.2 를 깐 후 sysinfo-20030604 를
설치했습니다.
>다음 에러가 나오는데, 이유를 모르겠습니다.
>어떻게 하면 되나요?
>
>Parse error: parse error in /var/www/html/sysinfo/func/class.utils.php(55) :
eval()'d code on line 17
>
>
>》》
화면보기
>
> 

========================================

첨부한 파일로 교체해 보세요.
다운받고 확장자를 txt 를 지우세요.

문제가 계속된다면 PHP 설정상의 문제인것 같네요.


아래는 패치한 내용입니다.

diff -Nur sysinfo-20030604/func/class.utils.php
sysinfo-20030604-after/func/class.utils.php
--- sysinfo-20030604/func/class.utils.php	Wed Jun  4 12:03:51 2003
+++ sysinfo-20030604-after/func/class.utils.php	Fri Oct 10 04:26:25 2003
@@ -43,7 +43,6 @@
 	return $c;
   }
 
-
   ## get tmplates file
   ##
   function get_tmpl($file)
@@ -51,13 +50,16 @@
 	global $TMPL, $_SERVER;
 
 	$content = $this->get_file($_SERVER[_PWD]."/templates/$TMPL[config]/$file");
-	$content = str_replace('"','\"',$content);
-	eval('$content = "'.$content.'";');
+
+	$from = array('["','"]','"'); // for javascript error
+	$to = array("['","']",'\"');
+	$content = str_replace($from,$to,$content);
+
+	@eval('$content = "'.$content.'";');
 
 	return $content;
   }
 
-
   ## get block tmplates file
   ## $from = array(), $to = array();
   ##
@@ -66,12 +68,15 @@
 	global $TMPL;
 
 	$content = str_replace($from,$to,$content);
-	$content = str_replace('"','\"',$content);
-	eval('$content = "'.$content.'";');
+
+	$from = array('["','"]','"'); // for javascript error
+	$to = array("['","']",'\"');
+	$content = str_replace($from,$to,$content);
+
+	@eval('$content = "'.$content.'";');
 
 	return $content;
   }
-
 
   function get_width($width)
   {




 
이전글 : sysinfo에서 에러 나거든요, 좀 봐주세요.
다음글 : 고맙습니다. 에러는 해결되었지만 화면이....  
 from 61.254.75.40
JS(Redhands)Board 0.4 +@

sysinfo에서 에러 나거든요, 좀 봐주세요. 고맙습니다. 에러는 해결되었지만 화면이....
인쇄용 


apache lighttpd linuxchannel.net 
Copyright 1997-2026. linuxchannel.net. All rights reserved.

Page loading: 0.01(server) + (network) + (browser) seconds