홈페이지 메인에 최신글 나타내는 도중 오류가 발생하였습니다.
본문
최초 오류 메인페이지 화면입니다.
1. 아래와 같이 index.html 및 index.htm 파일을 수정하였습니다.
<?
include_once("./_common.php");
include_once("$g4[path]/lib/latest.lib.php");
?>
<HTML>
<HEAD>
<meta http-equiv='Content-Type' content='text/html; charset=ks_c_5601-1987'>
<TITLE>고객과 함께 최선을 다하는 (주)중앙이엠씨에 오신 것을 환영합니다.</TITLE>
<link rel='stylesheet' type='text/css' href='{{$template}}/inc/company.css'>
<script language='javascript' src='{{$template}}/inc/common.js'></script>
<style>
<!--
a:link { text-decoration:none; }
a:active { text-decoration:none; }
a:visited { text-decoration:none; }
2. index.html 루트에 아래와 같이 _common.php를 만들었습니다.
문제 1. 홈페이지 상단에 오류 문구가 뜹니다.
문제 2. 홈페이지 하단 및 탭에 한글 폰트가 모두 깨져서 나옵니다.
해결방법 좀 알려주세요ㅠㅠ
답변 2
인클루드한 파일을 찾을수 없어 나타나는 오류입니다.
index.html 파일과 동일한 경로상에 _common.php 파일이 존재하는지 다시 확인해보세요.
그 아래의 latest 함수 오류는 위 문제가 해결되면 같이 해결될걸로 보이네요.
현재 파일들의 경로 입니다. index.html과 index.htm이 _common.php와 같은 경로에 있습니다 ㅠㅜ