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

서브도메인 폴더에 include 관련질문입니다.

용스케 9년 전 조회 4,658

서브 도메인 폴더에 index.php  파일을 만들고요.

 

메인페이지가 똑같이 나오게 하기위해

 

index.php 파일내용에다가

<?

include_once('../index.php');

?>

상위에 있는 index.php 파일을불러오니깐

 

다른파일을 못불러와서 아래같이 에러가 나네요...

 

어떻게 해아하나요?? 


Warning: include_once(./_common.php) [http://jiib.jiibmon.com/function.include-once">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() [http://jiib.jiibmon.com/function.include">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) [http://jiib.jiibmon.com/function.include-once">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() [http://jiib.jiibmon.com/function.include">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');

?>

추가 내용

 

 

 

 

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

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

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

로그인