lib.inc.php의 9,10, 38,124 ,1054 번째 줄의 include문을 모든 파일에서 필요로 함에도 불구하고 경로가 지정되어 있지 않기 때문에 경로를 다음처럼 지정해 주어야 합니다. 특히 124번째 줄의 include "message.php"; 때문에 로그인이 안되는 문제가 발생합니다.
<앞의 숫자는 줄 번호>
13 @include_once "config.inc.php"; --> @include_once "/home/계정이름/public_html/gnu/config.inc.php";
14 @include_once "dbconfig.inc.php"; --> @include_once "/home/계정이름/public_html/gnu/config.inc.php";
38 include_once "dbconfig.inc.php"; --> include_once "/home/계정이름/public_html/gnu/dbconfig.inc.php";
124 include "message.php"; --> include "/home/계정이름/public_html/gnu/bbs/message.php";
1054 @include_once "libdev.inc.php"; --> @include_once "/home/계정이름/public_html/gnulibdev.inc.php";
해결책으로 lib.inc.php 최상단이나 config.inc.php 에 $gnu_dir 과 $gnu_url 두 변수를 선언해줘서 해당경로의 파일들을
include $gnu_dir."bbs/message.php" 등의 명령을 쓰는 방식으로 해주는 것이 더 깔끔하지 않을까 싶습니다. 괜히 상대경로 구하는 함수를 돌릴 필요도 없구요.
<앞의 숫자는 줄 번호>
13 @include_once "config.inc.php"; --> @include_once "/home/계정이름/public_html/gnu/config.inc.php";
14 @include_once "dbconfig.inc.php"; --> @include_once "/home/계정이름/public_html/gnu/config.inc.php";
38 include_once "dbconfig.inc.php"; --> include_once "/home/계정이름/public_html/gnu/dbconfig.inc.php";
124 include "message.php"; --> include "/home/계정이름/public_html/gnu/bbs/message.php";
1054 @include_once "libdev.inc.php"; --> @include_once "/home/계정이름/public_html/gnulibdev.inc.php";
해결책으로 lib.inc.php 최상단이나 config.inc.php 에 $gnu_dir 과 $gnu_url 두 변수를 선언해줘서 해당경로의 파일들을
include $gnu_dir."bbs/message.php" 등의 명령을 쓰는 방식으로 해주는 것이 더 깔끔하지 않을까 싶습니다. 괜히 상대경로 구하는 함수를 돌릴 필요도 없구요.
|
댓글을 작성하시려면 로그인이 필요합니다.
댓글 4개
그리고..최초 설치시에...위부분의 경로가 자동으로 지정되게 해줘야할텐데...그렇지 않은가요....