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

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

QA

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

답변 1

본문

서브 도메인 폴더에 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');

?>

추가 내용

 

 

 

 

답변을 작성하시기 전에 로그인 해주세요.
QA 내용 검색
질문등록
전체 97
© SIRSOFT
현재 페이지 제일 처음으로