[ERROR] Warning: include_once(): http:// wrapper is disabled in the server configuration by allow_url_include=0 in

gyrud02·2022년 1월 31일
0

오류(ERROR)

목록 보기
17/27
Warning: include_once(): http:// wrapper is disabled in the server configuration by allow_url_include=0 in

Warning: include_once(http://127.0.0.1/프로젝트명/theme/basic/sub_visual.php): failed to open stream: no suitable wrapper could be found in

Warning: include_once(): Failed opening 'http://127.0.0.1/프로젝트명/theme/basic/sub_visual.php' for inclusion (include_path='C:\xampp\php\PEAR') in
<?php include_once(G5_THEME_URL.'/basic/sub_visual.php'); ?>

경로지정으로 인한 오류이다.

  • 위 코드를 아래의 코드로 수정한 후 해결하였다.
  • $_SERVER["DOCUMENT_ROOT"] : 절대 경로 "C:/xampp/htdocs
<?php include_once($_SERVER["DOCUMENT_ROOT"].'/프로젝트명/theme/basic/sub_visual.php');?>
profile
Back-End Engineer

0개의 댓글