경로 좀 봐주세요..

경로 좀 봐주세요..

QA

경로 좀 봐주세요..

답변 1

본문

wwwBuild(=그누보드) > wwwENG > html > main.php
저 위치에 최근게시물 적용을 하려고 하는데요,


<?
$g4_path = "../../wwwBuild";
include_once("./_common.php");
include_once("$g4[path]/head.sub.php");
include_once("$g4[path]/lib/latest.lib.php");
?>

이렇게 적었더니 아래처럼 에러가 빵빵 터집니다.
경로를 어떻게 적어야 하는 걸까요;;


Warning: include_once(./_common.php) [function.include-once]: failed to open stream: No such file or directory in /home/ftp_sawsnew/public_html/wwwBuild/wwwEng/html/main.php on line 3

Warning: include_once() [function.include]: Failed opening './_common.php' for inclusion (include_path='.:/usr/local/server/php/lib/php') in /home/ftp_sawsnew/public_html/wwwBuild/wwwEng/html/main.php on line 3

Warning: include_once(/head.sub.php) [function.include-once]: failed to open stream: No such file or directory in /home/ftp_sawsnew/public_html/wwwBuild/wwwEng/html/main.php on line 4

Warning: include_once() [function.include]: Failed opening '/head.sub.php' for inclusion (include_path='.:/usr/local/server/php/lib/php') in /home/ftp_sawsnew/public_html/wwwBuild/wwwEng/html/main.php on line 4

Warning: include_once(/lib/latest.lib.php) [function.include-once]: failed to open stream: No such file or directory in /home/ftp_sawsnew/public_html/wwwBuild/wwwEng/html/main.php on line 5

Warning: include_once() [function.include]: Failed opening '/lib/latest.lib.php' for inclusion (include_path='.:/usr/local/server/php/lib/php') in /home/ftp_sawsnew/public_html/wwwBuild/wwwEng/html/main.php on line 5


Fatal error: Call to undefined function latest() in /**/**/public_html/wwwBuild/wwwEng/html/main.php on line 26 (**는 보안상 저렇게 표시한 거예요)


이 질문에 댓글 쓰기 :

답변 1

$g4_path = "../../";

그렇게도 해봤는데 에러가 똑같이 나네요... ㅜㅜ
http://sir.co.kr/qa/?wr_id=14425&stx=path&sst=wr_num&page=5&unanswered=0&s_tag=
여기 글 찾아서 따라해봤더니 최신글 나오는 것까진 됐는데

Warning: Cannot modify header information - headers already sent by (output started at /**/**/**/wwwBuild/wwwEng/inc/head.php:9) in /**/**/**/wwwBuild/common.php on line 8

이번엔 이런 에러가 뜨는데요... 혹시 도움 주실 수 있으신지요? 프로그래머 없이 맨 땅에 헤딩하는 기분으로 작업 중인데 넘 힘드네요... 흑..

답변을 작성하시기 전에 로그인 해주세요.
QA 내용 검색
질문등록
전체 81
© SIRSOFT
현재 페이지 제일 처음으로