경로 좀 봐주세요.. 채택완료
wwwBuild(=그누보드) > wwwENG > html > main.php 저 위치에 최근게시물 적용을 하려고 하는데요,
</p>
<p><?
$g4_path = "../../wwwBuild";
include_once("./_common.php");
include_once("$g4[path]/head.sub.php");
include_once("$g4[path]/lib/latest.lib.php");
?></p>
<p>
이렇게 적었더니 아래처럼 에러가 빵빵 터집니다. 경로를 어떻게 적어야 하는 걸까요;;
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개
답변을 작성하려면 로그인이 필요합니다.
로그인
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
이번엔 이런 에러가 뜨는데요... 혹시 도움 주실 수 있으신지요? 프로그래머 없이 맨 땅에 헤딩하는 기분으로 작업 중인데 넘 힘드네요... 흑..