미채택 완료

include 가 제대로안되네요.

현재 ftp    www안에 그누보드폴더 안에 내용들 넣어놓은 상태입니다.
 
www   /  adm
          /   bbs
          /   data
          /    _common.php
          /   _head.php
          /   _tail.php
 
이 경로에 index.php 안에서
 
<?
include_once("./_common.php");
include_once("$g4[path]/lib/latest.lib.php");
include_once("./_head.php");
?> 
 
이렇게 include는 잘 불러와집니다.
 
그런데
 
www/web/index.php 이렇게 하위경로에서 include하면 제대로 불러오지를 못하네요
원인이 뭐고 어떻게 해결해야 되는지 도움부탁드립니다.
 
<?
include_once("./_common.php");
include_once("$g4[path]/lib/latest.lib.php");

include_once("./_head.php");
?>
|

답변 1개 / 댓글 1개

www/web/

이위치에

include_once("./_common.php");

얘가 있나요? 

답변에 대한 댓글 1개

경로가 상대경로로 하나전인데
include_once("../_common.php");
이렇게 불러오면 아무것도 적용되질않습니다.

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