head 파일 인클루시 에러가 뜨네요. 정보
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는 잘 붙는다는 겁니다.
서브 페이지를 만들어서 하기 위해
index와 동일하게 상단에
<?
include_once("./_common.php");
include_once("$g4[path]/lib/latest.lib.php");
$g4['title'] = "";
include_once("./_head.php");
?>
이렇게 붙였는데 상단같은 에러가 쫙뜨네요.
파일명은 sub1이런식으로 루트 폴더 밑에 php로 만들었습니다.
이상한건 tail.php는 잘 붙는다는 겁니다.
댓글 전체
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">
<?
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;
?>
<?
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;
?>
좀 의심되긴 하는데요
<? 앞에 빈 공간이 있거나 상단에 공간이 있으면 안되요
<? 앞에 빈 공간이 있거나 상단에 공간이 있으면 안되요
정말 감사합니다. 너무 기쁘네요.