index.php문제.. 정보
index.php문제..본문
홈페이지가 잘되다가 갑자기 이상한 에러 뜨면서 안되네요
메인페이지(index.htm) 에 접속하면
여기로 접속 바람
↓
shingaeng.ivyro.net
이렇게 되버렷어요.. 잘 되었었는데..ㅠ
index.php의 내용 입니다. -------------------------------------------------------------------------------
<?
include_once("./_common.php");
include_once("$g4[path]/lib/latest.lib.php");
include_once("./_common.php");
include_once("$g4[path]/lib/latest.lib.php");
$g4['title'] = "";
include_once("./_head.php");
?>
include_once("./_head.php");
?>
<!-- 메인화면 최신글 시작 -->
<table width="100%" cellpadding=0 cellspacing=0><tr><td valign=top>
<?
// 최신글
$sql = " select bo_table, bo_subject from $g4[board_table] order by gr_id, bo_table ";
$result = sql_query($sql);
for ($i=0; $row=sql_fetch_array($result); $i++) {
// 이 함수가 바로 최신글을 추출하는 역할을 합니다.
// 스킨은 입력하지 않을 경우 관리자 > 환경설정의 최신글 스킨경로를 기본 스킨으로 합니다.
<table width="100%" cellpadding=0 cellspacing=0><tr><td valign=top>
<?
// 최신글
$sql = " select bo_table, bo_subject from $g4[board_table] order by gr_id, bo_table ";
$result = sql_query($sql);
for ($i=0; $row=sql_fetch_array($result); $i++) {
// 이 함수가 바로 최신글을 추출하는 역할을 합니다.
// 스킨은 입력하지 않을 경우 관리자 > 환경설정의 최신글 스킨경로를 기본 스킨으로 합니다.
// 사용방법
// latest(스킨, 게시판아이디, 출력라인, 글자수);
echo latest("scroll", $row['bo_table'], 12, 70, "4,25");
echo "<p>\n";
}
?>
</td></tr></table>
<!-- 메인화면 최신글 끝 -->
// latest(스킨, 게시판아이디, 출력라인, 글자수);
echo latest("scroll", $row['bo_table'], 12, 70, "4,25");
echo "<p>\n";
}
?>
</td></tr></table>
<!-- 메인화면 최신글 끝 -->
<?
include_once("./_tail.php");
?>
include_once("./_tail.php");
?>
댓글 전체

index.php 문제가 아니구요... ^^:
head.php와 tail.php 문제네요... ^^*
index.php에서 각각 _head.php와 _tail.php를 불러 들이는데...
위 두 파일을 따로 수정하지 않으셨다면 , 그 안에서 다시 head.php와 tail.php 을 불러 들인답니다. -_-;;
head.php와 tail.php 문제네요... ^^*
index.php에서 각각 _head.php와 _tail.php를 불러 들이는데...
위 두 파일을 따로 수정하지 않으셨다면 , 그 안에서 다시 head.php와 tail.php 을 불러 들인답니다. -_-;;
_head에서 경로가 잘못된듯 합니다.
아니면 _common의 경로가 잘못되었을수도 있구요..
아니면 _common의 경로가 잘못되었을수도 있구요..