_common.php화일이 뭐가 문제인지 모르겠어요
Warning: include_once() [function.include]: Failed opening './common.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/hosting_users/ghh_gosunglee/www/g5/_common.php on line 2
<?php
include_once('./common.php');
?>
답변 5개
define('G5_DOMAIN', '');
define('G5_DOMAIN', 'https://www.domain.com/gnuboard5');
댓글을 작성하려면 로그인이 필요합니다.
답변에 대한 댓글 1개
댓글을 작성하려면 로그인이 필요합니다.
만약 A.php에 _common.php 인크루드한다고 가정하고
A.php 상단에 _common.php 파일을 인크루드 하셨잖아요
그런데 _common.php 파일은 또 common.php을 가져옵니다.
그럼 기준은 A.php 파일을 기준으로 common.php 을 찾아야 합니다.
a.php 파일과 common.php 파일이 같은 폴더에 있나요?
답변에 대한 댓글 2개
_common.php / common.php 는 원 파일 수정한거 없는 상태구요..
head.php와 index.php 를 고쳤는데.....아무래도 그 두개 파일 고친부분이 문제인가 싶어서 살펴보는데...
이상이 없어요.
혹시몰라 그누보드5 새로 다운받은 같은화일로 계속 엎어도 보아도 마찬가지어요...ㅠㅜ
댓글을 작성하려면 로그인이 필요합니다.
댓글을 작성하려면 로그인이 필요합니다.
댓글을 작성하려면 로그인이 필요합니다.
답변을 작성하려면 로그인이 필요합니다.
로그인
<?php
include_once('common.php');
?>
[/code]
위와같이 써보세요