2015-01-09 3 views
0

내가 스크립트를 실행하고 나는 다음과 같은 오류가 점점 오전은 :제거 open_basedir을 제한

WARNING: is_readable() [function.is-readable]: open_basedir restriction in effect. File(/usr/share/php/Am/View/Helper/HeadScript.php) is not within the allowed path(s): (/home/1205915141/members-net/:/tmp:/usr/share/pear/) in line 198 of file /home/1205915141/members-net/public_html/library/Zend/Loader.php 

나는 제한을 제거하기 위해 내 호스트를 요청하지만, 그들은 보안상의 이유로 늘 말했다. 따라서이 같은 htaccess로로 php.ini 파일을 대체하여 그것을 내 자신을 어떻게 해결 :

php_value open_basedir /usr/share/php/ 

하지만 실 거예요 작동합니다. 구문이나 경로가 정확히 무엇인지 정확히 모르겠습니다. 나 한테 손을 줘 줄래?

감사합니다.

답변

0

어떤 PHP 버전을 사용합니까? 아마도 < PHP 5.3입니까?

그것만의 php.ini 또는 httpd.conf 파일 내에서 설정 될 수있는 수단이 값이었다 PHP_INI_SYSTEM PHP < 5.3

http://php.net/manual/en/ini.core.php 참조. PHP 5.3부터 그 값은 PHP_INI_ALL이므로 htaccess 파일 내에서 값을 설정할 수 있습니다.