G

외부로그인좀 도와주세요

· 2010-01-28 (목) 02:41:52 · 1557 · 2

현재 제 홈페이지 계정은
[Root] - test.html
             [gnuboard4]
이렇게 되어 있는데

루트경로에 일단 "_common.php" 파일을 복사해서

<?
$g4_path = "./gnuboard4"; // common.php 의 상대 경로
include_once("$g4_path/common.php");
?>
이렇게 적고

test.html에

<?
include_once("./_common.php");
include_once("$g4[path]/lib/outlogin.lib.php");
echo outlogin("basic");
?>

이렇게 적었습니다.
그리고 test.html을 실행시켜보니

Warning: Cannot modify header information - headers already sent by (output started at /home/gascan91/www/test.html:9) in /home/gascan91/www/gnuboard4/common.php on line 8
이런 문장 한줄 뜨고
로그인창이 보이네요.
도데체 뭘 수정해야 경고문장이 안뜰까요? ㅡㅡㅋ

|

댓글 2개

test.html에

<?
// include_once("./_common.php");
<?
$g4_path = "gnuboard4"; // common.php 의 상대 경로 --> 이렇게 해보세요.
include_once("$g4_path/common.php");
?>
댓글을 작성하시려면 로그인이 필요합니다.

그누4 질문답변

66,531건

그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기 기존 게시물은 열람만 가능합니다.

+
제목 글쓴이 날짜 조회
10-01-28 조회 1,558
10-01-28 조회 1,871
10-01-28 조회 2,236
10-01-28 조회 1,102
10-01-27 조회 1,586
10-01-27 조회 1,592
10-01-27 조회 5,284
10-01-27 조회 1,791
10-01-27 조회 1,060
10-01-27 조회 1,675
10-01-27 조회 1,056
10-01-27 조회 808
10-01-27 조회 993
10-01-27 조회 2,513
10-01-27 조회 1,592
10-01-27 조회 1,641
10-01-27 조회 3,145
10-01-27 조회 1,191
10-01-27 조회 1,031
10-01-27 조회 1,731