내 파일을 포함 할 수 없습니다,하지만 난 할 수없는 몇 가지 이유 ...을 위해 여기 는 내 파일을 포함하려고
내 구조 :index.php
에
가하는 include_once('includes/php/inc.php');
있다 . inc.php
다음 행이 포함
// Required classes
require_once '../classes/cl_calendar.php';
가 완벽하게 합법적 인 나는 생각한다, 그러나 어떤 이유로 내가 할 모든이 오류입니다 : 표시 할이 오류를하게하고 어떻게 제거합니까 무엇
Warning: require_once(../classes/cl_calendar.php): failed to open stream: No such file or directory in /customers/xxx/xxx/httpd.www/new/extra/php/inc.php on line 14 Fatal error: require_once(): Failed opening required '../classes/cl_calendar.php' (include_path='.:/usr/share/php') in /customers/xxx/xxx/httpd.www/new/extra/php/inc.php on line 14
그것?
물론 경로가 잘못되었습니다. index.php가 include 폴더에 있다면 (올바른 폴더가 아니어야 함) 올바른 경로는'classes/file.php '가됩니다. – markus
'index.php'는 includes 폴더에 없습니다 ... – Michiel
그래서 루트에 있습니다. 올바른 경로는'includes/classes/file.php'입니다. 왜 .. ..? 이것은 당신에게 루트 이상의 한 수준을 이끌 것입니다. – markus