정말 당황스런 오륜데요
Warning: include_once(/match/_head.php) [function.include-once]: failed to open stream: No such file or directory in /home/toolsmap/public_html/match/index.php on line 2
Warning: include_once() [function.include]: Failed opening '/match/_head.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/toolsmap/public_html/match/index.php on line 2
이런오류가 나고 있는데요
분명 경로는 /match/_head.php 여기가 맞거든요
그누보드 되어있는게요
근데 왜 인크루드가 안될까요?
<?
include_once("/match/_head.php");
?>
두째줄이 이거거든요
Warning: include_once() [function.include]: Failed opening '/match/_head.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/toolsmap/public_html/match/index.php on line 2
이런오류가 나고 있는데요
분명 경로는 /match/_head.php 여기가 맞거든요
그누보드 되어있는게요
근데 왜 인크루드가 안될까요?
<?
include_once("/match/_head.php");
?>
두째줄이 이거거든요
|
댓글을 작성하시려면 로그인이 필요합니다.
로그인
댓글 8개
/match/search/partner/index.php
/match/_head.php
index.php 파일 최상위에다가 다음과 같은 1줄을 추가해주시고요.
include_once("./_common.php");
include_once("$g4[path]/_head.php");
동일 폴더에 _common.php 파일을 하나 생성합니다.
<?
$g4_path = "../.."; // common.php 의 상대 경로
include_once("$g4_path/common.php");
?>
Warning: Cannot modify header information - headers already sent by (output started at /home/toolsmap/public_html/match/search/partner/_common.php:4) in /home/toolsmap/public_html/match/head.sub.php on line 40
Warning: Cannot modify header information - headers already sent by (output started at /home/toolsmap/public_html/match/search/partner/_common.php:4) in /home/toolsmap/public_html/match/head.sub.php on line 42
Warning: Cannot modify header information - headers already sent by (output started at /home/toolsmap/public_html/match/search/partner/_common.php:4) in /home/toolsmap/public_html/match/head.sub.php on line 43
Warning: Cannot modify header information - headers already sent by (output started at /home/toolsmap/public_html/match/search/partner/_common.php:4) in /home/toolsmap/public_html/match/head.sub.php on line 44
Warning: Cannot modify header information - headers already sent by (output started at /home/toolsmap/public_html/match/search/partner/_common.php:4) in /home/toolsmap/public_html/match/head.sub.php on line 45
Warning: Cannot modify header information - headers already sent by (output started at /home/toolsmap/public_html/match/search/partner/_common.php:4) in /home/toolsmap/public_html/match/head.sub.php on line 46
헤더 부분이 다 에러가 나죠?
공백이 들어가거나 그럼 바로 에러가 나오고
_common.php파일의 인크루드는 최상위에서 이루어 져야 합니다.
<?
include_once($g4[path]."/_common.php");
아래 내용들
?>
이런형식이 되지 않으면 에러 뿜어 냅니다.
_common.php 파일에는 문법 위외의 공백이 들어가면 안되구요
<?
$g4_path = "..";
include_once($g4_path."/common.php");
?>
edit pxxx 사용하시면 옵션에 저장할때 마지막 공백 없에기 << 요거 제일 좋습니다 ㅎㅎ
ob_start(); 이걸로 해결했습니다.