테스트 사이트 - 개발 중인 베타 버전입니다

aaa.php 출력이 않되는 이유를 모르겠습니다. 채택완료

연탄집개 10년 전 조회 5,025

아래 소스처럼 페이지를 만들어 모바일에서 출력이 시키면 전혀 출력이 되지 않습니다.

그런데 여기서 if (!defined('_GNUBOARD_')) exit;  이부분을 빼면 에러가 나면서 출력은 됩니다.

 

</p><p><?php</p><p>if (!defined('_GNUBOARD_')) exit;  </p><p>include_once(G5_MOBILE_PATH.'/_head.php');
?></p><p><div style="padding:10px; min-height:400px;">인사말1111</div></p><p><?php
include_once(G5_MOBILE_PATH.'/_tail.php');
?>​

댓글을 작성하려면 로그인이 필요합니다.

답변 3개

채택된 답변
+20 포인트
10년 전

if (!defined('_GNUBOARD_')) exit 이것은 스킨 파일에 넣는 거에요.

 

 

외부에서 직접적으로 스킨 파일에 접속 못하게 하기 위해 사용하는 코드에요.

 

로그인 후 평가할 수 있습니다

댓글을 작성하려면 로그인이 필요합니다.

10년 전

if (!defined('_GNUBOARD_')) exit  빼면

Warning: include_once(G5_MOBILE_PATH/_head.php) [http://busya.co.kr/mobile/function.include-once">function.include-once]: failed to open stream: No such file or directory in /home/busya/busya.co.kr/www/mobile/about.php on line 3 Warning: include_once() [http://busya.co.kr/mobile/function.include">function.include]: Failed opening 'G5_MOBILE_PATH/_head.php' for inclusion (include_path='.:/usr/share/pear/') in /home/busya/busya.co.kr/www/mobile/about.php on line 3 

�씤�궗留�1111
Warning: include_once(G5_MOBILE_PATH/_tail.php) [http://busya.co.kr/mobile/function.include-once">function.include-once]: failed to open stream: No such file or directory in /home/busya/busya.co.kr/www/mobile/about.php on line 9 Warning: include_once() [http://busya.co.kr/mobile/function.include">function.include]: Failed opening 'G5_MOBILE_PATH/_tail.php' for inclusion (include_path='.:/usr/share/pear/') in /home/busya/busya.co.kr/www/mobile/about.php on line 9

 

로그인 후 평가할 수 있습니다

댓글을 작성하려면 로그인이 필요합니다.

10년 전

어떤 에러가 나시는지도 올려주셔야 확인이 가능할 것 같습니다.

일단 지금 상황으로 봐서는 코드 맨위에

define("_GNUBOARD_", true);
이런식으로 상수를 define 하시면 될 것 같네요.

로그인 후 평가할 수 있습니다

댓글을 작성하려면 로그인이 필요합니다.

답변을 작성하려면 로그인이 필요합니다.

로그인