최신글 땡겨오기 - 도와주세요 정보
최신글 땡겨오기 - 도와주세요관련링크
http://speed-quick.co.kr
158회 연결
본문
게시판 설치 전에 html로 대부분의 페이지 작성을 한 다음 그누보드 utf-8 버전을 설치했습니다.
그 다음 게시판 만들고 링크거는 것까지는 다 되었구요. 메인 페이지에 iframe부분에 최신글 땡겨올려구 하는데 잘 안되네요.
팁과 질답게시판에 있는 방법을 천천히 읽어보면서 해봤는데,,,
마지막으로 해본건 _common.php 파일을 홈디렉토리에 복사하구 수정하라는 대로 수정하구,
test.php라는 파일을 만들어 테스트 해봤습니다.
_common.php파일 내용
<?
$g4_path = "./speed-quick"; // 요부분수정
include_once("$g4_path/common.php");
?>
$g4_path = "./speed-quick"; // 요부분수정
include_once("$g4_path/common.php");
?>
test.php파일 내용
<html>
<body>
<?
include_once("./_common.php");
include_once("<?=&g4['path']?>/lib/latest.lib.php");
latest("basic", "news", 5, 60);
?>
스피드퀵 최신글 테스트
</body>
</html>
<body>
<?
include_once("./_common.php");
include_once("<?=&g4['path']?>/lib/latest.lib.php");
latest("basic", "news", 5, 60);
?>
스피드퀵 최신글 테스트
</body>
</html>
입니다. 혹 공백 때문인가 싶어 한 자 한 자 타이핑 했습니다.
에러 내용은
Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/hosting_users/q15888571/www/test.php on line 5
홈주소는 speed-quick.co.kr 입니다.
구조는 speed-quick.co.kr/ ~ htm페이지 들어있는 곳
speed-quick.co.kr/speed-quick/ ~ 그누보드 파일 들어있는 곳
이렇게 되어있습니다.
알려주시면 감사하겠습니다..
댓글 전체
일단 다른것은 접어두고 에러 내용은
<?=&g4['path']?>
==>
$g4[path]
<?=&g4['path']?>
==>
$g4[path]
test.php파일 내용
<?
include_once("./_common.php");
include_once("$g4[path]/lib/latest.lib.php");
include_once("$g4[path]/_head.php");
echo latest("basic", news, 5, 60);
include_once("$g4[path]/_tail.php");
?>
만일 경로 에러가 발생한다면
위의 _common.php의 $g4_path="";의 경로설정을 바꾸어 보셔야 합니다.
<?
include_once("./_common.php");
include_once("$g4[path]/lib/latest.lib.php");
include_once("$g4[path]/_head.php");
echo latest("basic", news, 5, 60);
include_once("$g4[path]/_tail.php");
?>
만일 경로 에러가 발생한다면
위의 _common.php의 $g4_path="";의 경로설정을 바꾸어 보셔야 합니다.
천상재회님 귀찮겠지만 다시 한 번 봐주세요..;;
경로도 바꾸어 가면서 해도 에러가 나요.
에러 내용은 다음과 같습니다.
Warning: Cannot modify header information - headers already sent by (output started at /home/hosting_users/q15888571/www/speed-quick/test.php:1) in /home/hosting_users/q15888571/www/speed-quick/head.sub.php on line 32
Warning: Cannot modify header information - headers already sent by (output started at /home/hosting_users/q15888571/www/speed-quick/test.php:1) in /home/hosting_users/q15888571/www/speed-quick/head.sub.php on line 34
Warning: Cannot modify header information - headers already sent by (output started at /home/hosting_users/q15888571/www/speed-quick/test.php:1) in /home/hosting_users/q15888571/www/speed-quick/head.sub.php on line 35
Warning: Cannot modify header information - headers already sent by (output started at /home/hosting_users/q15888571/www/speed-quick/test.php:1) in /home/hosting_users/q15888571/www/speed-quick/head.sub.php on line 36
Warning: Cannot modify header information - headers already sent by (output started at /home/hosting_users/q15888571/www/speed-quick/test.php:1) in /home/hosting_users/q15888571/www/speed-quick/head.sub.php on line 37
Warning: Cannot modify header information - headers already sent by (output started at /home/hosting_users/q15888571/www/speed-quick/test.php:1) in /home/hosting_users/q15888571/www/speed-quick/head.sub.php on line 38
header.sub.php 파일을 받아서 에러난 라인을 봐도 뭔지 잘 몰라서요.
다시 한 번 부탁드립니다.
경로도 바꾸어 가면서 해도 에러가 나요.
에러 내용은 다음과 같습니다.
Warning: Cannot modify header information - headers already sent by (output started at /home/hosting_users/q15888571/www/speed-quick/test.php:1) in /home/hosting_users/q15888571/www/speed-quick/head.sub.php on line 32
Warning: Cannot modify header information - headers already sent by (output started at /home/hosting_users/q15888571/www/speed-quick/test.php:1) in /home/hosting_users/q15888571/www/speed-quick/head.sub.php on line 34
Warning: Cannot modify header information - headers already sent by (output started at /home/hosting_users/q15888571/www/speed-quick/test.php:1) in /home/hosting_users/q15888571/www/speed-quick/head.sub.php on line 35
Warning: Cannot modify header information - headers already sent by (output started at /home/hosting_users/q15888571/www/speed-quick/test.php:1) in /home/hosting_users/q15888571/www/speed-quick/head.sub.php on line 36
Warning: Cannot modify header information - headers already sent by (output started at /home/hosting_users/q15888571/www/speed-quick/test.php:1) in /home/hosting_users/q15888571/www/speed-quick/head.sub.php on line 37
Warning: Cannot modify header information - headers already sent by (output started at /home/hosting_users/q15888571/www/speed-quick/test.php:1) in /home/hosting_users/q15888571/www/speed-quick/head.sub.php on line 38
header.sub.php 파일을 받아서 에러난 라인을 봐도 뭔지 잘 몰라서요.
다시 한 번 부탁드립니다.
복사(긁어가신) 부분의 앞이나 뒤에 공백이 있는가 봅니다...제거해 주세요
네..공백을 다 없애고 새로 올린다음 새로고침두 여러번 하고 하여도 위에 처럼 에러가 나네요.
에러나는 페이지는요.
http://speed-quick.co.kr/speed-quick/test.php 입니다.
에러나는 페이지는요.
http://speed-quick.co.kr/speed-quick/test.php 입니다.
감사합니다..천상재회님..
한 번 해보겠습니다..
한 번 해보겠습니다..