K

index에 로그인다는데 오류가.

이런 오류가 뜨네요
 
Parse error: syntax error, unexpected '.' in /home/rpster/public_html/index.php on line 5
 
 
무슨 오류죠...
 
== index.php 파일 소스 ==
 
<?
include_once("./_common.php");
include_once("$g4[path]/head.sub.php");
include_once("$g4[path]/lib/outlogin.lib.php");
... ?>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=euc-kr">
<title>홈으로</title>
<meta name="generator" content="Namo WebEditor v6.0">
</head>
<body bgcolor="white" text="black" link="black" vlink="black" alink="black" leftmargin="0" marginwidth="0" topmargin="0" marginheight="0">
<table cellpadding="0" cellspacing="0" width="674" height="0%">
    <tr>
        <td width="110%" height="25">
            <p align="center"><a href="index.php"><font face="서울꿈" color="black">홈으로</font></a></p>
</td>
        <td width="110%" height="25">
            <p align="center"><font face="서울꿈" color="black"><a href="AlRim.php">알림방</a></font></p>
</td>
        <td width="110%" height="25">
            <p align="center"><font face="서울꿈"><a href="board.php">게시판</a></font></p>
</td>
        <td width="110%" height="25">
            <p align="center"><font face="서울꿈"><a href="Study.php">강좌방</a></font></p>
</td>
        <td width="110%" height="25">
            <p align="center"><font face="서울꿈"><a href="exe.php">자료실</a></font></p>
</td>
        <td width="110%" height="25">
            <p align="center"><font face="서울꿈"><a href="play.php">놀이터</a></font></p>
</td>
    </tr>
    <tr>
        <td width="221" colspan="2"><?=outlogin("RobinPC")?></td>
        <td width="454" colspan="4">&nbsp;</td>
    </tr>
</table>
&nbsp;
</body>
</html>
|

댓글 9개

현소스 5번째줄의 ...는 무엇인지요? 요거때문에 생긴 오류인것같은데요?
... &#48820;고 그냥 ? 해야 하나요..
답변 감사합니다.
... 빼고 해도 같은 오류가 나요..
구문 에러인듯... 라인 참고해서 누락된 소스 확인해보심이...
구문에러요?
전 초보라 그런걸 몰라서 ㅜㅜ....
뭐가 잘못된거지..?
어쨌든 답변 감사합니다..
<?
include_once("./_common.php");
include_once("$g4[path]/head.sub.php");
include_once("$g4[path]/lib/outlogin.lib.php");
?>
인가요???

또한 젤 하단에 아래소스도 넣어주시구요..
<?
include_once("$g4[path]/tail.sub.php");
?>
에~ 또...
head.sub.php 에서 이미 <html> <head> <title> <body>등이 선언되어 있으니...
index.php 에서 다시 작성할 필요는 없습니다.
Warning: main(gnuboard4/_common.php) [function.main]: failed to open stream: No such file or directory in /home/rpster/public_html/gnuboard4/index1.php on line 2

Warning: main() [function.include]: Failed opening 'gnuboard4/_common.php' for inclusion (include_path='.:/usr/local/php4.4/lib/php') in /home/rpster/public_html/gnuboard4/index1.php on line 2

Warning: main(/lib/outlogin.lib.php) [function.main]: failed to open stream: No such file or directory in /home/rpster/public_html/gnuboard4/index1.php on line 3

Warning: main() [function.include]: Failed opening '/lib/outlogin.lib.php' for inclusion (include_path='.:/usr/local/php4.4/lib/php') in /home/rpster/public_html/gnuboard4/index1.php on line 3

Fatal error: Call to undefined function: outlogin() in /home/rpster/public_html/gnuboard4/index1.php on line 5

라는 오류가 뜨네요 ㅜㅜ
구문에러입니다.

php 구문은 항시 아래와 같은 형식이 유지되야 합니다.

<?
echo '안녕하세요'; //

echo '<br>반가와요'; //



?>

즉, 어떤 코드이던지 ; <<=== 이부분이 누락되면 안됩니다.

만약 ; 이부분을 넣었는데....

에러 코드가 89 line <<--- 이런게 뜬다면... 89 줄이 에러입니다.

따라서.. 가장 좋은건.....

삭제하고 다시 만드세요. &>>..<<
''답변 감사합니다.
댓글을 작성하시려면 로그인이 필요합니다. 로그인

그누4 질문답변

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

+
제목 글쓴이 날짜 조회
19년 전 조회 1,602
19년 전 조회 1,524
19년 전 조회 1,544
19년 전 조회 1,391
19년 전 조회 1,650
19년 전 조회 1,707
19년 전 조회 1,532
19년 전 조회 1,518
19년 전 조회 1,747
19년 전 조회 1,538
19년 전 조회 1,604
19년 전 조회 1,574
19년 전 조회 1,595
19년 전 조회 1,503
19년 전 조회 1,528
19년 전 조회 4,034
19년 전 조회 1,562
19년 전 조회 1,747
19년 전 조회 1,499
19년 전 조회 1,917
🐛 버그신고