require_once 질문.
Controlelr에서 ruquire_once를 사용하려고 하는데, 경로 때문에 질문 드립니다 :)
우선 Ci은 test라는 폴더의 하위 폴더에 있습니다
test
Ci의
application / asset / .. + html(제가 사용하는)
그리고 이 html /php/php-image/php_image.php 가 제가 require 하려는 경로인데요.
Ci에서 경로개념이 아직 정확히 잡히지 않아서 ..
require_once('../html/php/php-image/php_image.php');
이렇게 시작을 해서 .
require_once('../../html/php/php-image/php_image.php');
require_once('../../../html/php/php-image/php_image.php');
이런식으로 늘려서 해보고 있는데 , 경로가 제대로 잡히지 않네요 .
아무리 많이 순차적으로 늘려봐도,
require_once() [
function.require]: Failed opening required '../../html/php/php-image/php_image.php' (include_path='.:/usr/share/pear:/usr/share/php') in
/home//www/test/application//.php on line
2
라는 오류가 나요~ ㅠ
왜그러는걸까요~?
Document Root를 포함한 Full Path를 적어보시면 어떨까 하네요.