상대경로 질문좀요~
본문
C:\xampp\htdocs\test\eyoom\theme\community\skin_bs\board\streaming\list.skin.html 여기에 있는 파일에서
C:\xampp\htdocs\test\google\src\Google_Client.php 를 require_once 할려고 하는데
$g5_path = "../../../../../../../";
require_once '$g5_path/google/src/Google_Client.php';
이런식으로 하니깐 계속 찾지를 못하네요 파일을... 경로를 어떻게 설정해줘야 되나요?
답변 2
require_once '$g5_path/google/src/Google_Client.php';
쌍따음표를 써야 합니다 .아니면 php인식이 안됩니다.
require_once "$g5_path/google/src/Google_Client.php";
혹은 .으로 연결하는 방식이나
require_once $g5_path.'/google/src/Google_Client.php';
require_once "../../../../../../google/src/Google_Client.php";
또는
$g5_path = "../../../../../../.."; // 요기 마지막에 / 를 빼야 합니다.
require_once $g5_path.'/google/src/Google_Client.php';
답변을 작성하시기 전에 로그인 해주세요.