홈페이지 메인화면 질문이여 ㅠ

2015-01-07 (수) 10:19:27 4,100

0b771f7f4f265cd91ae525dcd66c97fd_1420593477_9004.JPG 

위화면의 메인부분의 오류는

Fatal error: Call to undefined function latest() in /host/home3/rgwc9351/html/index.html on line 35

이런식으로 오류가 나버립니다

홈페이지의 index.html 은

<?php
$g4[path]="./html/gnuboard4/";
include_once("$g4[path]/common.php");
include_once("$g4[path]/lib/latest.lib.php");
?>
 
<html>
<head>
<title>령강노인종합복지센터 홈페이지</title>

<link rel="shortcut icon" href="./images/heart.ico">

</head>
<body leftmargin="0" topmargin="0">

<table align="center" width="1024" border="0" cellspacing="0" cellpadding="0">
<tr>
<td colspan="8" height="40" background="./images/header.gif"></td>
</tr>

<tr>
<td height="84" width="232"><a href="index.html"><img src="./images/menu12.gif" border="0"></a></td>
<td width="132"><a href="index2.html"><img src="./images/menu2.gif" onmouseover="this.src='./images/menu2_over.gif'" onmouseout="this.src='./images/menu2.gif'" border="0"></a></td>
<td width="132"><a href="index3.html"><img src="./images/menu3.gif" onmouseover="this.src='./images/menu3_over.gif'" onmouseout="this.src='./images/menu3.gif'" border="0"></a></td>
<td width="132"><a href="index4.html"><img src="./images/menu4.gif" onmouseover="this.src='./images/menu4_over.gif'" onmouseout="this.src='./images/menu4.gif'" border="0"></a></td>
<td width="132"><a href="index5.html"><img src="./images/menu5.gif" onmouseover="this.src='./images/menu5_over.gif'" onmouseout="this.src='./images/menu5.gif'" border="0"></a></td>
<td width="132"><a href="index6.html"><img src="./images/menu6.gif" onmouseover="this.src='./images/menu6_over.gif'" onmouseout="this.src='./images/menu6.gif'" border="0"></a></td>
<td width="132"><a href="index7.html"><img src="./images/menu7.gif" onmouseover="this.src='./images/menu7_over.gif'" onmouseout="this.src='./images/menu7.gif'" border="0"></a></td>
</tr>

<tr>
<td colspan="8">
 <table width="1024" height="764" border="0" cellspacing="0" cellpadding="0">
   <tr>
  <td background="..."><?=latest("simple_blue","notice",5,20) ?> </td>
  </tr>

 </table>
</td>
</tr>

<tr>
<td colspan="8" height="102" background="./images/footer.gif"></td>
</tr>

</table>

</body>
</html>​

이렇게 되잇습니다..... 여러번 문의를 해보았지만 도저히 모르겠습니다 ㅠ 

|

답변 3개 / 댓글 7개

a7dec310a6b86f826d1d37079f0306a2_1420597646_0842.JPG

위의 댓글을 토대로 수정을 하니이런식으로 웹페이지가 안열립니다. 

답변에 대한 댓글 1개

2015-01-07 (수) 11:32:16
제가보기엔 경로 측 문제인거같은데... 경로를 재설정 해보시는게 좋을꺼같습니다.

$g4[path]="./gnuboard4"; 를 $g4[path]="./"; 로 바꾸시고 해보시길.. 그래도 안되면... 좀더 고수분들이 ....
2015-01-07 (수) 10:51:24

1번째 코드표 부분이 수정해야될 부분입니다. 2번째 코드표 부분이 수정완료 부분입니다.

1CODE

Copy
<td background="..."><?=latest("simple_blue","notice",5,20) ? > </td>

 2CODE

Copy
<td background="..."><?=latest("simple_blue","notice",5,20)?> </td>

이렇게 수정해보시길바랍니다. 문제는 즉슨) ? > , ?> 이 것의 차이입니다.~

답변에 대한 댓글 1개

수정후 위의 댓글과 같이 나옵니다 웹페이지가 안열립니다.

$g4[path]="./gnuboard4";

이렇게 바꾸세요.

답변에 대한 댓글 5개

감사합니다만 안되네요
Parse error: syntax error, unexpected '>' in /host/home3/rgwc9351/html/index.html on line 35
35번줄이 오류라고 하는데
<td background="..."><?=latest("simple_blue","notice",5,20) ? > </td>
이것이 35번줄입니다. 무엇이 잘못된것인가요??
익명닉네임님의 답변대로 처리하시면 됩니다.
php 에서 <? php 구문을 열고 ?> 닫는 tag 는 정확히 띄워쓰기등이 없이 작성되어야 합니다.
사진 다시 첨부하겟습니다
위에 문구 $g4[path]="./gnuboard4"; 로바꾸고
php구문 띄워쓰기 없이 적으니까
웹페이지가 안열립니다 사진 댓글에 첨부하겟습니다.
령강님의 호스팅환경에서 보면 rgwc9351 가 사용하시는 호스팅유저 아이디이고 그아래의 html 이 웹사이트의 홈디렉토리인것으로 보이는데.. 아닌가요? 그리고 index.html 파일은 홈디렉토리에 위치해 있고..
홈디렉토리에 gnuboard4 라는 디렉토리를 만들고 거기에 그누보드를 설치한 상태..
그 상태가 맞다면 제가 알려드린게 틀린건 아닙니다.

alert 메시지가 깨어져 나오니 더이상의 답변은 어렵네요. 해당 사이트의 url 이라도 알려주시죠.
2015-01-07 (수) 14:26:14
카츠님이 말씀하신대로 gnuboard4 폴더에 넣은상태로 저분이 만든거라면 경로 문제는 아니겠지만.
인코딩깨짐 때문에 모르는건 당영합니다.

인코딩만 제데로 설정후 뜨는 오류를 알려주시면 좀더 자세하게 알려드릴수있겠지만 말이지요..

령강님 화이팅!!

답변을 작성하려면 로그인이 필요합니다.