head 파일 인클루시 에러가 뜨네요.

Warning: Cannot modify header information - headers already sent by (output started at /home/cos11982/www/company1.php:1) in /

서브 페이지를 만들어서 하기 위해
index와 동일하게 상단에


<?
include_once("./_common.php");
include_once("$g4[path]/lib/latest.lib.php");

$g4['title'] = "";
include_once("./_head.php");
?>

이렇게 붙였는데 상단같은 에러가 쫙뜨네요.
파일명은 sub1이런식으로 루트 폴더 밑에 php로 만들었습니다.
이상한건 tail.php는 잘 붙는다는 겁니다.
|

댓글 5개

company1.php 오류인데요 head.php내용을 알아야할것 같네요
상단 내용은 다음과 같습니다.

<?
include_once("./_common.php");
include_once("$g4[path]/lib/latest.lib.php");

$g4['title'] = "";
include_once("./_head.php");
?>



<!-- 메인화면 최신글 시작 -->


<table width="920" border="0">
<tr>
<td width="578" rowspan="8"> </td>
<td width="1"> </td>
<td colspan="3"><img src="/company/img/company_03.gif" width="294" height="25" /></td>
<td width="433"> </td>
</tr>
<tr>
<td> </td>
<td colspan="4"><img src="/company/img/company_06.gif" width="715" height="8" /></td>
</tr>
<tr>
<td> </td>
<td width="203"> 
헤드파일 상단은 이렇습니다.

<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가

include_once("$g4[path]/head.sub.php");
include_once("$g4[path]/lib/outlogin.lib.php");
include_once("$g4[path]/lib/poll.lib.php");
include_once("$g4[path]/lib/visit.lib.php");
include_once("$g4[path]/lib/connect.lib.php");
include_once("$g4[path]/lib/popular.lib.php");

//print_r2(get_defined_constants());

// 사용자 화면 상단과 좌측을 담당하는 페이지입니다.
// 상단, 좌측 화면을 꾸미려면 이 파일을 수정합니다.

$table_width = 920;
?>
좀 의심되긴 하는데요
<? 앞에 빈 공간이 있거나 상단에 공간이 있으면 안되요
정말 감사합니다. 너무 기쁘네요.
댓글을 작성하시려면 로그인이 필요합니다.

그누4 질문답변

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

+
제목 글쓴이 날짜 조회
14년 전 조회 818
14년 전 조회 1,267
14년 전 조회 1,747
14년 전 조회 778
14년 전 조회 1,343
14년 전 조회 1,769
14년 전 조회 1,116
14년 전 조회 762
14년 전 조회 767
14년 전 조회 1,354
14년 전 조회 818
14년 전 조회 999
14년 전 조회 1,001
14년 전 조회 927
14년 전 조회 1,957
14년 전 조회 720
14년 전 조회 858
14년 전 조회 1,471
14년 전 조회 1,759
14년 전 조회 2,105