하

하루종일 관리자 모드 에러잡고 있습니다.

이번에 나오는 에러는 이렇습니다.


Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /www/sinan/public_html/cafe/adm/_common.php on line 4


아래는 _common.php파일 내용입니다

<?
$g4_path = ".."; // common.php 의 상대 경로
include_once ("$g4_path/common.php");
include_once("$g4['admin_path']/admin.lib.php");
?>



_common.php파일 내용을 아래와 같이 바꾸면..

<?
$g4_path = ".."; // common.php 의 상대 경로
include_once("$g4_path/common.php");
include_once("$g4[admin_path]/admin.lib.php");
?>






에러는 이렇게 확대 됩니다
Warning: main(adm/admin.lib.php) [function.main]: failed to open stream: No such file or directory in /www/sinan/public_html/cafe/adm/_common.php on line 4

Warning: main() [function.include]: Failed opening 'adm/admin.lib.php' for inclusion (include_path='.:/usr/local/php/lib/php') in /www/sinan/public_html/cafe/adm/_common.php on line 4

Warning: Cannot modify header information - headers already sent by (output started at /www/sinan/public_html/cafe/adm/_common.php:4) in /www/sinan/public_html/cafe/head.sub.php on line 32

Warning: Cannot modify header information - headers already sent by (output started at /www/sinan/public_html/cafe/adm/_common.php:4) in /www/sinan/public_html/cafe/head.sub.php on line 34

Warning: Cannot modify header information - headers already sent by (output started at /www/sinan/public_html/cafe/adm/_common.php:4) in /www/sinan/public_html/cafe/head.sub.php on line 35

Warning: Cannot modify header information - headers already sent by (output started at /www/sinan/public_html/cafe/adm/_common.php:4) in /www/sinan/public_html/cafe/head.sub.php on line 36

Warning: Cannot modify header information - headers already sent by (output started at /www/sinan/public_html/cafe/adm/_common.php:4) in /www/sinan/public_html/cafe/head.sub.php on line 37

Warning: Cannot modify header information - headers already sent by (output started at /www/sinan/public_html/cafe/adm/_common.php:4) in /www/sinan/public_html/cafe/head.sub.php on line 38

댓글 2개

혹시 utf8 사용하시나요?
사용안하고 있습니다.

예전에 백업해 두었던 파일로 다 대체해서 정상복구했는데요
아직도 원인을 잘 모르겠습니다.....
댓글을 작성하시려면 로그인이 필요합니다.

그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기 기존 게시물은 열람만 가능합니다.

+
제목 글쓴이 날짜 조회
08-01-11 조회 1,656
08-01-11 조회 1,634
08-01-11 조회 1,768
08-01-11 조회 1,567
08-01-10 조회 1,616
08-01-10 조회 1,598
08-01-10 조회 1,606
08-01-10 조회 1,595
08-01-10 조회 1,644
08-01-10 조회 1,714
08-01-10 조회 1,640
08-01-10 조회 1,765
08-01-10 조회 1,638
08-01-10 조회 1,997
08-01-10 조회 1,602
08-01-10 조회 1,618
08-01-10 조회 1,663
08-01-10 조회 1,635
08-01-10 조회 1,820
08-01-10 조회 1,595