index에 로그인다는데 오류가. > 그누4 질문답변

그누4 질문답변

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

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

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"> </td>
    </tr>
</table>
 
</body>
</html>
  • 복사

댓글 전체

<?
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 줄이 에러입니다. 

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

삭제하고 다시 만드세요. &>>..<<
© SIRSOFT
현재 페이지 제일 처음으로