드림위버로 메인작성시 최신글 메인에 불러오기 정보
드림위버로 메인작성시 최신글 메인에 불러오기본문
제가 호스팅서버에 각각
/html 폴더랑
/그누보드4 폴더를 구분지어놨는데
/html 폴더안에 있는 main.html 안에서 최신글들을 원하는 위치에 아이프레임으로 넣고싶은데
그누보드 설치 폴더 안에 위치해야만 최신글이 불러지는건가요? ㅠㅠ
폴더가 다른곳의 html문서 안에서 최신글출력 할수있는 방법좀 알려주세요 ㅠㅠ
/html 폴더랑
/그누보드4 폴더를 구분지어놨는데
/html 폴더안에 있는 main.html 안에서 최신글들을 원하는 위치에 아이프레임으로 넣고싶은데
그누보드 설치 폴더 안에 위치해야만 최신글이 불러지는건가요? ㅠㅠ
폴더가 다른곳의 html문서 안에서 최신글출력 할수있는 방법좀 알려주세요 ㅠㅠ
댓글 전체
html 이 아니라 php 파일로 작업하고
파일 상단에 common.php 파일의 위치를 알려주도록 하면
latest 함수를 쓸수 있지 않을까요?
파일 상단에 common.php 파일의 위치를 알려주도록 하면
latest 함수를 쓸수 있지 않을까요?
답변감사드립니다 제 지금 상황을 알려드리자면 여러 군데 글을 찾아서 방법을 따라해봤는데
일단 main.html 파일의 head 부분에
<?
include_once("./_common.php");
include_once("$g4[path]/head.sub.php");
include_once("$g4[path]/lib/latest.lib.php"); //
?>
이 문구를 삽입하고
출력을 원하는 곳에
<?=latest("basic", 'notice', 5, 40);?>
이문구를 삽입한뒤
main.html 이들어간 같은 폴더 내에
_common.php 파일을 만들고 그안에 내용을
<?
include_once "./_common.php";
include_once "$g4[path]/lib/latest.lib.php";
?>
이렇게 넣었습니다.
근데 안되네요 ㅠㅠ 뭐가 잘못된걸까요
오류 문구는
Warning: include_once(tab3_menu.php): failed to open stream: No such file or directory in /home/ysy1541/www/rakthai/main.html on line 101 Warning: include_once(): Failed opening 'tab3_menu.php' for inclusion (include_path='.:/usr/share/pear:/usr/share/php') in /home/ysy1541/www/rakthai/main.html on line 101
이렇게뜹니다 ㅠㅠㅠㅠ..
그누보드 완전 초짜라서 아직 개념도 안잡혀서 힘드네요..도와주세요 ㅠㅠ
일단 main.html 파일의 head 부분에
<?
include_once("./_common.php");
include_once("$g4[path]/head.sub.php");
include_once("$g4[path]/lib/latest.lib.php"); //
?>
이 문구를 삽입하고
출력을 원하는 곳에
<?=latest("basic", 'notice', 5, 40);?>
이문구를 삽입한뒤
main.html 이들어간 같은 폴더 내에
_common.php 파일을 만들고 그안에 내용을
<?
include_once "./_common.php";
include_once "$g4[path]/lib/latest.lib.php";
?>
이렇게 넣었습니다.
근데 안되네요 ㅠㅠ 뭐가 잘못된걸까요
오류 문구는
Warning: include_once(tab3_menu.php): failed to open stream: No such file or directory in /home/ysy1541/www/rakthai/main.html on line 101 Warning: include_once(): Failed opening 'tab3_menu.php' for inclusion (include_path='.:/usr/share/pear:/usr/share/php') in /home/ysy1541/www/rakthai/main.html on line 101
이렇게뜹니다 ㅠㅠㅠㅠ..
그누보드 완전 초짜라서 아직 개념도 안잡혀서 힘드네요..도와주세요 ㅠㅠ
iframe으로 하는 이유가 뭔가요?
최신글 리스트가 나온다 하더라라도 클릭시 뷰페이지는 어떻게 할 것인가요?
_common.php 파일을 만들고 그안에 내용을
<?
include_once "./_common.php";
include_once "$g4[path]/lib/latest.lib.php";
?>
이렇게 넣었습니다.
--------------------------
위 내용은 틀렸습니다. 아래처럼 해야 합니다
<?
$g4_path="../그누보드4"; //<-- main.html 입장에서 본 그누보드가 설치된 경로및 폴더명
include_once "$g4_path/common.php";
?>
최신글 리스트가 나온다 하더라라도 클릭시 뷰페이지는 어떻게 할 것인가요?
_common.php 파일을 만들고 그안에 내용을
<?
include_once "./_common.php";
include_once "$g4[path]/lib/latest.lib.php";
?>
이렇게 넣었습니다.
--------------------------
위 내용은 틀렸습니다. 아래처럼 해야 합니다
<?
$g4_path="../그누보드4"; //<-- main.html 입장에서 본 그누보드가 설치된 경로및 폴더명
include_once "$g4_path/common.php";
?>
뷰페이지는 팝업창을 띄워서 보이게끔 하려고합니다 ;;
ㅠㅠ 너무 초짜라서 이해가 덜된상태에 질문하니까 죄송하네요
말씀하신 문구 수정해보았는데도 뜨질않네요;
Warning: include_once(tab3_menu.php): failed to open stream: No such file or directory in /home/ysy1541/www/rakthai/main.html on line 101 Warning: include_once(): Failed opening 'tab3_menu.php' for inclusion (include_path='.:/usr/share/pear:/usr/share/php') in /home/ysy1541/www/rakthai/main.html on line 101
에러문구 계속 뜹니다;;
ㅠㅠ 너무 초짜라서 이해가 덜된상태에 질문하니까 죄송하네요
말씀하신 문구 수정해보았는데도 뜨질않네요;
Warning: include_once(tab3_menu.php): failed to open stream: No such file or directory in /home/ysy1541/www/rakthai/main.html on line 101 Warning: include_once(): Failed opening 'tab3_menu.php' for inclusion (include_path='.:/usr/share/pear:/usr/share/php') in /home/ysy1541/www/rakthai/main.html on line 101
에러문구 계속 뜹니다;;
failed to open stream: No such file or directory <- 이건 경로가 안맞다는 거예요..
tab3_menu.php 이거 인클루드 걸때 제대로 경로 맞게 불러오도록 써주셔야해요..
tab3_menu.php 이거 인클루드 걸때 제대로 경로 맞게 불러오도록 써주셔야해요..
main.php파일에 head부분에는
<?
include_once("./_common.php");
include_once("$g4[path]/lib/latest.lib.php");
?>
란문구를 넣고
최신글 넣고 싶은곳에는
div 태그로
<?=latest("latest_tap3",rakthai_notice, 5, 20); ?>
라고 넣어준뒤에
_common.php 파일 말씀대로 수정했더니
홈페이지 상단에는
Warning: Cannot modify header information - headers already sent by (output started at /home/ysy1541/www/rakthai/main.php:7) in /home/ysy1541/www/gnuboard4/common.php on line 8 Warning: Cannot modify header information - headers already sent by (output started at /home/ysy1541/www/rakthai/main.php:7) in /home/ysy1541/www/gnuboard4/head.sub.php on line 32 Warning: Cannot modify header information - headers already sent by (output started at /home/ysy1541/www/rakthai/main.php:7) in /home/ysy1541/www/gnuboard4/head.sub.php on line 34 Warning: Cannot modify header information - headers already sent by (output started at /home/ysy1541/www/rakthai/main.php:7) in /home/ysy1541/www/gnuboard4/head.sub.php on line 35 Warning: Cannot modify header information - headers already sent by (output started at /home/ysy1541/www/rakthai/main.php:7) in /home/ysy1541/www/gnuboard4/head.sub.php on line 36 Warning: Cannot modify header information - headers already sent by (output started at /home/ysy1541/www/rakthai/main.php:7) in /home/ysy1541/www/gnuboard4/head.sub.php on line 37 Warning: Cannot modify header information - headers already sent by (output started at /home/ysy1541/www/rakthai/main.php:7) in /home/ysy1541/www/gnuboard4/head.sub.php on line 38
라는 오류문구가 뜨고
최신글 다려는 부분에는
select * from g4_write_notice where wr_is_comment = 0 order by wr_num limit 0, 5
1146 : ���̺� 'ysy15.g4_write_notice' �� �������� �ʽ��ϴ�.
error file : /rakthai/main.php
라는 오류문구가 뜨네요 ㅠㅠㅠ;;;
<?
include_once("./_common.php");
include_once("$g4[path]/lib/latest.lib.php");
?>
란문구를 넣고
최신글 넣고 싶은곳에는
div 태그로
<?=latest("latest_tap3",rakthai_notice, 5, 20); ?>
라고 넣어준뒤에
_common.php 파일 말씀대로 수정했더니
홈페이지 상단에는
Warning: Cannot modify header information - headers already sent by (output started at /home/ysy1541/www/rakthai/main.php:7) in /home/ysy1541/www/gnuboard4/common.php on line 8 Warning: Cannot modify header information - headers already sent by (output started at /home/ysy1541/www/rakthai/main.php:7) in /home/ysy1541/www/gnuboard4/head.sub.php on line 32 Warning: Cannot modify header information - headers already sent by (output started at /home/ysy1541/www/rakthai/main.php:7) in /home/ysy1541/www/gnuboard4/head.sub.php on line 34 Warning: Cannot modify header information - headers already sent by (output started at /home/ysy1541/www/rakthai/main.php:7) in /home/ysy1541/www/gnuboard4/head.sub.php on line 35 Warning: Cannot modify header information - headers already sent by (output started at /home/ysy1541/www/rakthai/main.php:7) in /home/ysy1541/www/gnuboard4/head.sub.php on line 36 Warning: Cannot modify header information - headers already sent by (output started at /home/ysy1541/www/rakthai/main.php:7) in /home/ysy1541/www/gnuboard4/head.sub.php on line 37 Warning: Cannot modify header information - headers already sent by (output started at /home/ysy1541/www/rakthai/main.php:7) in /home/ysy1541/www/gnuboard4/head.sub.php on line 38
라는 오류문구가 뜨고
최신글 다려는 부분에는
select * from g4_write_notice where wr_is_comment = 0 order by wr_num limit 0, 5
1146 : ���̺� 'ysy15.g4_write_notice' �� �������� �ʽ��ϴ�.
error file : /rakthai/main.php
라는 오류문구가 뜨네요 ㅠㅠㅠ;;;
방금 main.php 파일이름을 test.php로만 바꿨는데 구현된요... 도대체 이유가 뭘까요 ㅠㅠ