include 가 제대로안되네요.

include 가 제대로안되네요.

QA

include 가 제대로안되네요.

답변 1

본문

현재 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

www/web/

이위치에

include_once("./_common.php");

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