채택완료
최신글 불러오려는데 에러가 납니다. Warning: include(): http:// wrapper is....
제가 요새 질문을 많이하네요...:)
최신글 불러오려는데 아래와 같은 에러가 납니다.
Warning: include(): http:// wrapper is disabled in the server configuration by allow_url_include=0 in /home/junga/public_html/extend/one.php on line 43
아래가 그 해당43번째줄(include "$latest_skin_path/latest.skin.php";)입니다. 어떻게 수정해야 할지 아시는분들 답변주시면 감사하겠습니다.
Copy
ob_start();
include "$latest_skin_path/latest.skin.php";
$content = ob_get_contents();
ob_end_clean();
return $content;
|
답변 2개 / 댓글 3개
채택된 답변
+20 포인트
php.ini 설정에서 allow_url_include 을 막아놓은 경우입니다.
(보안상 막아 놓는게 좋지요..)
include "/home/하드디스크 실제 폴더명/latest.skin.php";
이렇게 하시면 될 겁니다.
$latest_skin_path."/latest.skin.php"
답변을 작성하려면 로그인이 필요합니다.