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

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


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 질문답변

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

+
제목 글쓴이 날짜 조회
18년 전 조회 1,607
18년 전 조회 1,883
18년 전 조회 1,759
18년 전 조회 1,575
18년 전 조회 1,629
18년 전 조회 1,581
18년 전 조회 1,551
18년 전 조회 1,699
18년 전 조회 1,508
18년 전 조회 1,547
18년 전 조회 1,517
18년 전 조회 1,525
18년 전 조회 1,513
18년 전 조회 1,559
18년 전 조회 1,623
18년 전 조회 1,560
18년 전 조회 1,674
18년 전 조회 1,517
18년 전 조회 1,913
18년 전 조회 1,528
🐛 버그신고