테스트 사이트 - 개발 중인 베타 버전입니다

최신글(latest) 에러 채택완료

원더미 11년 전 조회 5,067
안녕하세요^^! 
 
초보인데 최신글 올리려고 검색하다 영카드4 매누얼에 있는 최신글 올리는 방법으로
oseyo.com/test140402.php올리는데 아래와 같은 에러가 뜨네요^^!
에러내용 궁금하고 혹신 그누보드5의 최신글 올리는 방법 게시된 것 있으면 알려주세요^^!
 
 
무제 문서
---- 아래(에러)
 
Warning: Cannot modify header information - headers already sent by (output started at /home/wondermi/www/test140402.php:9) in /home/wondermi/www/common.php on line 8 Warning: Cannot modify header information - headers already sent by (output started at /home/wondermi/www/test140402.php:9) in /home/wondermi/www/common.php on line 490 Warning: Cannot modify header information - headers already sent by (output started at /home/wondermi/www/test140402.php:9) in /home/wondermi/www/common.php on line 492 Warning: Cannot modify header information - headers already sent by (output started at /home/wondermi/www/test140402.php:9) in /home/wondermi/www/common.php on line 493 Warning: Cannot modify header information - headers already sent by (output started at /home/wondermi/www/test140402.php:9) in /home/wondermi/www/common.php on line 494 Warning: Cannot modify header information - headers already sent by (output started at /home/wondermi/www/test140402.php:9) in /home/wondermi/www/common.php on line 495 Warning: Cannot modify header information - headers already sent by (output started at /home/wondermi/www/test140402.php:9) in /home/wondermi/www/common.php on line 496 Warning: include_once() [http://www.oseyo.com/function.include-once">function.include-once]: open_basedir restriction in effect. File(/lib/latest.lib.php) is not within the allowed path(s): (/home/wondermi/:/tmp/) in /home/wondermi/www/test140402.php on line 11 Warning: include_once(/lib/latest.lib.php) [http://www.oseyo.com/function.include-once">function.include-once]: failed to open stream: Operation not permitted in /home/wondermi/www/test140402.php on line 11 Warning: include_once() [http://www.oseyo.com/function.include">function.include]: Failed opening '/lib/latest.lib.php' for inclusion (include_path='.:/usr/local/php/lib/php') in /home/wondermi/www/test140402.php on line 11 Fatal error: Call to undefined function latest() in /home/wondermi/www/test140402.php on line 12
댓글을 작성하려면 로그인이 필요합니다.

답변 2개

채택된 답변
+20 포인트
11년 전
<div><div><?php </div>
<div>include_once("./_common.php"); </div>
<div>?> </div>
<div><html > </div>
<div><head> </div>
<div><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> </div>
<div><title>무제 문서</title></div>
<div><?php </div>
<div>include_once("$g4[path]/lib/latest.lib.php"); // latest() 함수를 사용하여야 하므로 이 프로그램을 포함시킵니다. </div>
<div>?></div>
<div></head> </div>
<div><body></div>
<div><?php</div>
<div>echo latest("basic", "free", 5, 70); // basic 스킨으로 free 라는 게시판을 출력합니다. </div>
<div>?> </div>
<div></body> </div>
<div></html></div></div>
로그인 후 평가할 수 있습니다

답변에 대한 댓글 1개

원더미
11년 전
바쁘신데 ! 감사드립니다^^! 위에 것 복사해서 올리니 아래와 같이 에러가 떠서

Parse error: syntax error, unexpected T_INCLUDE_ONCE in /home/wondermi/www/test140405.php on line 2

유사 Q&A를 검색하니

$g5_path='./gnuboard5';
@require_once($g5_path.'/common.php'); 로 대체 해보라고 해서 해보니까

에러는 안뜨는데 빈페이가 나오네요~! 이게 맞게 된 건가요^^?

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

11년 전
식으로 맨위에 위치후 테스트해 보세요.
로그인 후 평가할 수 있습니다

답변에 대한 댓글 1개

원더미
11년 전
답변감사드립니다. 아래와 같이 변경했는데 같은 에러가 나오네요^^!
<?
include_once("./_common.php");
include_once("$g4[path]/lib/latest.lib.php"); // latest() 함수를 사용하여야 하므로 이 프로그램을 포함시킵니다.
echo latest("basic", "free", 5, 70); // basic 스킨으로 free 라는 게시판을 출력합니다.
?>
<html >
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>무제 문서</title>
</head>
<body>
</body>
</html>

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

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

로그인