2015-01-30 1 views
0

jpgraph의 이미지를 웹에서 작동시키는 데 문제가 있습니다. 나는 jpgraphs 작품 로컬 호스트에서 실행하지만 난 그것을 업로드 할 때 오류 메시지가있는 경우 :jpgraph 경고 (2) : file_exists() [function.file-exists] : open_basedir의 제한 사항

경고 (2) file_exists()는 [function.file이-존재] : 효과 제한의 open_basedir은. 파일 (/usr/share/fonts/truetype/arialbd.ttf)이 허용 된 경로 (/ home/:/usr/lib/php :/tmp) 내에 있지 않습니다. [APP/Vendor/jpgraph/jpgraph-3.5 .0b1/SRC/jpgraph_ttf.inc.php, 라인 (505)]

경고 (2) file_exists()는 []는 function.file-존재 : 제한 open_basedir을 적용. (/ home/:/usr/lib/php :/tmp) [APP/Vendor/jpgraph/jpgraph] 파일 (/usr/share/fonts/truetype/arialbd.ttf)은 허용 된 경로 내에 있지 않습니다. -3.5.0b1/src/jpgraph_ttf.inc.php, line 510]

자세한 내용은 궁금한 점이 있으시면 언제든지 문의하십시오. 미리 감사드립니다.

답변

0

이것은 실제로 CakePHP가 아닌 PHP 설정의 문제입니다. http://php.net/manual/en/ini.core.php

제한을 php.ini 파일을 열고 지정된 디렉토리 트리

에 PHP 액세스 할 수있는 파일에서

open_basedir 라인을 찾아, 그것을 주석.

웹 서버를 다시 시작해야합니다.