왕초보입니다.최신글목록 달기하는데 정보
왕초보입니다.최신글목록 달기하는데본문
Fatal error: Call to undefined function: latest() in /home/winmanne/public_html/main.html on line 45
이와 같이 에러가 납니다. 머가 잘못된건지 도통모르겠는데 친철히 갈쳐주실분 안계신가요? 왕초보에요. 위와같은 오류는 웹브라우져로 실행시켰을때나오고요.
<?=latest("basic", "freeboard", 5, 20);?> 홈페이지 중간에 요소스만 살짝넣어서 한거거든요. 답변 기다릴게요
댓글 전체
latest를 쓰실려면 상단에 include_once("$g4[path]/lib/latest.lib.php"); 가 있어야 합니다
답변감사합니다^^ 근데 그대로 해봤는데 어느 상단에 넣는 지 몰라서 head사이에도 넣어보고 body태크 사이에도 넣어보고 바로 위에도 넣어봤지만 그냥 include_once("$g4[path]/lib/latest.lib.php"); <<< 이글이 그대로 브라우져에 표시되기만하던데.. 제가 함수를 몰라서 정확히좀 갈켜주실수 없을까요? 아시는분 좀 도와주세요
ex)
<?
include_once("./_common.php");
include_once("$g4[path]/lib/latest.lib.php"); // latest() 함수를 사용하여야 하므로 이 프로그램을 포함시킵니다.
echo latest("basic", "free", 5, 70); // basic 스킨으로 free 라는 게시판을 출력합니다.
?>
<?
include_once("./_common.php");
include_once("$g4[path]/lib/latest.lib.php"); // latest() 함수를 사용하여야 하므로 이 프로그램을 포함시킵니다.
echo latest("basic", "free", 5, 70); // basic 스킨으로 free 라는 게시판을 출력합니다.
?>
아 정말 이상하네요.. 위에 예제대로 넣었는데 왜 또 에러가 뜨는지 ㅠㅠ
<?
include_once("./_common.php");
include_once("$g4[path]/lib/latest.lib.php"); // latest() 함수를 사용하여야 하므로 이 프로그램을 포함시킵니다.
echo latest("basic", "freeboard", 5, 20); // basic 스킨으로 free 라는 게시판을 출력합니다.
?>
그대로 썼거든요. 게시판 table명도 맞고 게시판도 링크된거 잘나오는데 왜 에러가 뜨는지 답답하네요 ㅠㅠ; 한번만 더 도와주십사 요청합니다;;
에러메세지는 다음과 같습니다.
Warning: main(./_common.php) [function.main]: failed to open stream: No such file or directory in /home/winmanne/public_html/main.html on line 45
Warning: main() [function.include]: Failed opening './_common.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/winmanne/public_html/main.html on line 45
Warning: main() [function.main]: open_basedir restriction in effect. File(/lib/latest.lib.php) is not within the allowed path(s): (/home/winmanne:/usr/lib/php:/usr/local/lib/php:/tmp:/usr/local/apache/htdocs/webmail) in /home/winmanne/public_html/main.html on line 46
Warning: main(/lib/latest.lib.php) [function.main]: failed to open stream: Operation not permitted in /home/winmanne/public_html/main.html on line 46
Warning: main() [function.include]: Failed opening '/lib/latest.lib.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/winmanne/public_html/main.html on line 46
Fatal error: Call to undefined function: latest() in /home/winmanne/public_html/main.html on line 47
<?
include_once("./_common.php");
include_once("$g4[path]/lib/latest.lib.php"); // latest() 함수를 사용하여야 하므로 이 프로그램을 포함시킵니다.
echo latest("basic", "freeboard", 5, 20); // basic 스킨으로 free 라는 게시판을 출력합니다.
?>
그대로 썼거든요. 게시판 table명도 맞고 게시판도 링크된거 잘나오는데 왜 에러가 뜨는지 답답하네요 ㅠㅠ; 한번만 더 도와주십사 요청합니다;;
에러메세지는 다음과 같습니다.
Warning: main(./_common.php) [function.main]: failed to open stream: No such file or directory in /home/winmanne/public_html/main.html on line 45
Warning: main() [function.include]: Failed opening './_common.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/winmanne/public_html/main.html on line 45
Warning: main() [function.main]: open_basedir restriction in effect. File(/lib/latest.lib.php) is not within the allowed path(s): (/home/winmanne:/usr/lib/php:/usr/local/lib/php:/tmp:/usr/local/apache/htdocs/webmail) in /home/winmanne/public_html/main.html on line 46
Warning: main(/lib/latest.lib.php) [function.main]: failed to open stream: Operation not permitted in /home/winmanne/public_html/main.html on line 46
Warning: main() [function.include]: Failed opening '/lib/latest.lib.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/winmanne/public_html/main.html on line 46
Fatal error: Call to undefined function: latest() in /home/winmanne/public_html/main.html on line 47