[급질문]정말초보인데..오류뜨는것좀잡아주세요ㅠ.ㅠ > 그누4 질문답변

매출이 오르면 내리는 수수료! 지금 수수료센터에서 전자결제(PG)수수료 비교견적 신청해 보세요!

그누4 질문답변

그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기
기존 게시물은 열람만 가능합니다.

[급질문]정말초보인데..오류뜨는것좀잡아주세요ㅠ.ㅠ 정보

[급질문]정말초보인데..오류뜨는것좀잡아주세요ㅠ.ㅠ

본문

이렇게뜹니다..제발 도와주세요

Warning: main(./_common.php): failed to open stream: No such file or directory in /home/hosting_users/chlaud22/www/index/index.html on line 3

Warning: main(): Failed opening './_common.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/hosting_users/chlaud22/www/index/index.html on line 3

Warning: main(/lib/outlogin.lib.php): failed to open stream: No such file or directory in /home/hosting_users/chlaud22/www/index/index.html on line 4

Warning: main(): Failed opening '/lib/outlogin.lib.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/hosting_users/chlaud22/www/index/index.html on line 4

Warning: main(/lib/latest.lib.php): failed to open stream: No such file or directory in /home/hosting_users/chlaud22/www/index/index.html on line 5

Warning: main(): Failed opening '/lib/latest.lib.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/hosting_users/chlaud22/www/index/index.html on line 5

Warning: main(/lib/poll.lib.php): failed to open stream: No such file or directory in /home/hosting_users/chlaud22/www/index/index.html on line 6

Warning: main(): Failed opening '/lib/poll.lib.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/hosting_users/chlaud22/www/index/index.html on line 6

Warning: main(/lib/visit.lib.php): failed to open stream: No such file or directory in /home/hosting_users/chlaud22/www/index/index.html on line 7

Warning: main(): Failed opening '/lib/visit.lib.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/hosting_users/chlaud22/www/index/index.html on line 7

Warning: main(/lib/connect.lib.php): failed to open stream: No such file or directory in /home/hosting_users/chlaud22/www/index/index.html on line 8

Warning: main(): Failed opening '/lib/connect.lib.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/hosting_users/chlaud22/www/index/index.html on line 8

Warning: main(/lib/popular.lib.php): failed to open stream: No such file or directory in /home/hosting_users/chlaud22/www/index/index.html on line 9

Warning: main(): Failed opening '/lib/popular.lib.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/hosting_users/chlaud22/www/index/index.html on line 9

Warning: main(/head.sub.php): failed to open stream: No such file or directory in /home/hosting_users/chlaud22/www/index/index.html on line 10

Warning: main(): Failed opening '/head.sub.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/hosting_users/chlaud22/www/index/index.html on line 10


인덱스젤위에 이렇게 넣엇는데 경로를 못잡는거같습니다..
<?
$g4_path = "/home/hosting_users/chlaud22/www/board";
include_once("./_common.php");
include_once("$g4[path]/lib/outlogin.lib.php");
include_once("$g4[path]/lib/latest.lib.php");
include_once("$g4[path]/lib/poll.lib.php");
include_once("$g4[path]/lib/visit.lib.php");
include_once("$g4[path]/lib/connect.lib.php");
include_once("$g4[path]/lib/popular.lib.php");
include_once("$g4[path]/head.sub.php");
?>

댓글 전체

지웠는데 안됩니다ㅠ.ㅠ

힝~

근데 인덱스에 기본으로 달아야되는 명령어는 맞지않나요?

_common.php에서 잘못된건가요?
<?
$g4_path = "."; // common.php 의 상대 경로
include_once("$g4_path/common.php");
?>

이렇게들어가있는데...
에러 첫줄에
directory in /home/hosting_users/chlaud22/www/index/index.html on line 3
이건 index.html 이  index 폴더에 있는 화일이라는 말이겠죠?

include_once("./_common.php");
했으니 _common.php 역시 index 폴더에 있어야겟죠?
그런데...그 _common.php 내부에서는
$g4_path = "."; <==이렇게 했다면

$g4_path = "/home/hosting_users/chlaud22/www/board"; <-- 이건 아무 소용 없게 되는 겁니다
따라서 _common.php 에서 $g4_path를 맞게 설정해야죠
아니면 index.html에서 _common.php 대신 곧바로 common.php를  include

$g4_path = "/board";
include_once("$g4_path/common.php"); 이렇게 해보세요
전체 4 |RSS
그누4 질문답변 내용 검색
  • 개별 목록 구성 번호 제목 작성자 작성일 조회
  • 게시물이 없습니다.

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1404호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT