최신글(latest) 에러
본문
안녕하세요^^!
초보인데 최신글 올리려고 검색하다 영카드4 매누얼에 있는 최신글 올리는 방법으로
oseyo.com/test140402.php올리는데 아래와 같은 에러가 뜨네요^^!
에러내용 궁금하고 혹신 그누보드5의 최신글 올리는 방법 게시된 것 있으면 알려주세요^^!
<html >
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>무제 문서</title>
</head>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>무제 문서</title>
</head>
<body>
<?
include_once("./_common.php");
include_once("$g4[path]/lib/latest.lib.php"); // latest() 함수를 사용하여야 하므로 이 프로그램을 포함시킵니다.
echo latest("basic", "free", 5, 70); // basic 스킨으로 free 라는 게시판을 출력합니다.
?>
</body>
</html>
<?
include_once("./_common.php");
include_once("$g4[path]/lib/latest.lib.php"); // latest() 함수를 사용하여야 하므로 이 프로그램을 포함시킵니다.
echo latest("basic", "free", 5, 70); // basic 스킨으로 free 라는 게시판을 출력합니다.
?>
</body>
</html>
---- 아래(에러)
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() [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) [function.include-once]: failed to open stream: Operation not permitted in /home/wondermi/www/test140402.php on line 11
Warning: include_once() [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
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() [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) [function.include-once]: failed to open stream: Operation not permitted in /home/wondermi/www/test140402.php on line 11
Warning: include_once() [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
<?php
include_once("./_common.php");
?>
<html >
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>무제 문서</title>
<?php
include_once("$g4[path]/lib/latest.lib.php"); // latest() 함수를 사용하여야 하므로 이 프로그램을 포함시킵니다.
?>
</head>
<body>
<?php
echo latest("basic", "free", 5, 70); // basic 스킨으로 free 라는 게시판을 출력합니다.
?>
</body>
</html>
<? include_once("./_common.php"); ?>
<html>
식으로 맨위에 위치후 테스트해 보세요.
답변을 작성하시기 전에 로그인 해주세요.