헤더 오류건

헤더 오류건

QA

헤더 오류건

본문

<?php
include_once('../common.php');
// 페이지 제목
$g5['title'] = "오시는길";
include_once(G5_THEME_PATH.'/head.php');
?>
<!-- 여기 아래부터 모든 HTML 요소 구성  시작 -->
<meta charset="utf-8">
<div><img src="../img/map.gif"></div>
<div>
<div id="map" style="width:858px;height:500px"></div>
<script>
function myMap() {
  var myCenter = new google.maps.LatLng(0,0);
  var mapCanvas = document.getElementById("map");
  var mapOptions = {center: myCenter, zoom: 17};
  var map = new google.maps.Map(mapCanvas, mapOptions);
  var marker = new google.maps.Marker({position:myCenter});
  marker.setMap(map);
  var infowindow = new google.maps.InfoWindow({
    content: "NICKENT GOLF KOREA"
  });
  infowindow.open(map,marker);
}
</script>
<script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyDRkfUjo3-
4f7M9wATCmEBx2Vy3V9zEask&callback=myMap"></script>
</div>


Warning: Cannot modify header information - headers already sent by (output started at /home/nickent/public_html/rent/rent.php:1) in /home/nickent/public_html/common.php on line 8

Warning: Cannot modify header information - headers already sent by (output started at /home/nickent/public_html/rent/rent.php:1) in /home/nickent/public_html/common.php on line 625

Warning: Cannot modify header information - headers already sent by (output started at /home/nickent/public_html/rent/rent.php:1) in /home/nickent/public_html/common.php on line 627

Warning: Cannot modify header information - headers already sent by (output started at /home/nickent/public_html/rent/rent.php:1) in /home/nickent/public_html/common.php on line 628

Warning: Cannot modify header information - headers already sent by (output started at /home/nickent/public_html/rent/rent.php:1) in /home/nickent/public_html/common.php on line 629

Warning: Cannot modify header information - headers already sent by (output started at /home/nickent/public_html/rent/rent.php:1) in /home/nickent/public_html/common.php on line 630

Warning: Cannot modify header information - headers already sent by (output started at /home/nickent/public_html/rent/rent.php:1) in /home/nickent/public_html/common.php on line 631

 

이런 오류가 뜹니다 도와주세요...

인코딩 할때 utf-8로 하도록 저장했구요그외 특이사항으로는 게시판관리기능으로 생성된 페이지가 아니라는것 입니다

이 질문에 댓글 쓰기 :

답변 2

제가봤을때는 이경우는 대부분 common.php파일의 경로문제인데요...

include_once('../common.php'); 이부분의 경로를

include_once('../../common.php'); 이렇게 바꿔보시시던가

include_once('common.php'); 이렇게 바꿔보시던가....

head.php파일로부터의 경로를 찾아가시면 될껍니다.

아니면 head파일에 common.php가 한번더 인크루드되어있다던가.....

그경우 위에 common.php를 인크루드하는곳을 지워주시고

head.php인크루드 밑에 타이틀설정 넣어주시면 되겠습니다.

<?php

  include_once(G5_THEME_PATH.'/head.php');

  // 페이지 제목

  $g5['title'] = "오시는길";

?>

이런식으로요

 
 
 

다른페이지는 전부 게시판을 만들어서 그게시글의 view페이지를 불러왔는데 오시는길만 따로작업하시네요...? 다른페이지들 방식이랑 똑같은방법으로 만드시는게 훨씬 해결하는데 도움이될듯 합니다...

답변을 작성하시기 전에 로그인 해주세요.
전체 36
QA 내용 검색

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1404호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT