2026, 새로운 도약을 시작합니다.

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

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

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

Copy
인사말1111​

답변 3개

채택된 답변
+20 포인트

if (!defined('_GNUBOARD_')) exit

이것은 스킨 파일에 넣는 거에요.

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

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

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

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



Warning: include_once(G5_MOBILE_PATH/_head.php) [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() [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) [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() [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
로그인 후 평가할 수 있습니다

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

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

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

Copy
define("_GNUBOARD_", true);
이런식으로 상수를 define 하시면 될 것 같네요.
로그인 후 평가할 수 있습니다

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

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

로그인
🐛 버그신고