서브도메인 폴더에 include 관련질문입니다.
본문
서브 도메인 폴더에 index.php 파일을 만들고요.
메인페이지가 똑같이 나오게 하기위해
index.php 파일내용에다가
<?
include_once('../index.php');
?>
상위에 있는 index.php 파일을불러오니깐
다른파일을 못불러와서 아래같이 에러가 나네요...
어떻게 해아하나요??
Warning: include_once(./_common.php) [function.include-once]: failed to open stream: No such file or directory in /home/hosting_users/yfix_logistic/www/index.php on line 3
Warning: include_once() [function.include]: Failed opening './_common.php' for inclusion (include_path='.:/usr/local/php/lib/php') in /home/hosting_users/yfix_logistic/www/index.php on line 3
Warning: include_once(G5_MOBILE_PATH/index.php) [function.include-once]: failed to open stream: No such file or directory in /home/hosting_users/yfix_logistic/www/index.php on line 12
Warning: include_once() [function.include]: Failed opening 'G5_MOBILE_PATH/index.php' for inclusion (include_path='.:/usr/local/php/lib/php') in /home/hosting_users/yfix_logistic/www/index.php on line 12
답변 1
해당폴더에 _common.php 파일 복사하시고..
_common.php 내용
<?
include_once('../common.php');
?>
서브도메인 폴더의 index.php
<?
include_once('./_common.php');
?>
추가 내용