努努莉 发表于 2014-4-26 19:22:23

目录权限的问题,linux空间给777权限看看,如果windows空间给internet来宾帐号读写...



求高手解答如何修改代码或者配置,解决下面的问题:

程序在本地运行没有问题,但是传到万网的空间,就报错了:

Warning: is_readable() : open_basedir restriction in effect. File

(/var/www/php5/lib/php/./application/views/helpers/PaginationControl.php) is not within the allowed path(s):

(/data/home/hmu026369:/usr/home/hmu026369:/data/home/tmp:/usr/home/tmp:/var/www/disablesite) in

/data/home/hmu026369/htdocs/Zend/Loader.php on line 192

Warning: is_readable() : open_basedir restriction in effect. File

(/var/www/php5/lib/php/./application/views/helpers/Partial.php) is not within the allowed path(s):

(/data/home/hmu026369:/usr/home/hmu026369:/data/home/tmp:/usr/home/tmp:/var/www/disablesite) in

/data/home/hmu026369/htdocs/Zend/Loader.php on line 192

这是我的代码结构:

zf
|----application
|----public
|----zend
|----index.php


在index.php中这样引用的zend:

require_once 'Zend/Loader.php';
Zend_Loader::loadClass ( 'Zend_Controller_Front' );
Zend_Loader::loadClass ( 'Zend_Config_Ini' );
Zend_Loader::loadClass ( 'Zend_Db' );
Zend_Loader::loadClass ( 'Zend_Db_Table' );
Zend_Loader::loadClass ( 'Zend_Registry' );
Zend_Loader::loadClass ( 'Zend_Paginator' );
Zend_Loader::loadClass('Zend_Paginator_Adapter_Null');






http://www.jcwcn.com/static/image/common/oshr.png分享0http://www.jcwcn.com/static/image/common/fav.gif收藏0http://www.jcwcn.com/static/image/common/rec_add.gif顶0http://www.jcwcn.com/static/image/common/rec_subtract.gif踩0


使用道具 举报








沙发
http://www.jcwcn.com/static/image/common/online_supermod.gif 发表于 2012-5-31 17:04:05 |只看该作者




目录权限的问题,linux空间给777权限看看,如果windows空间给internet来宾帐号读写权限。


Warning: is_readable() [function.is-readable]: open_basedir restriction in effect. File(../template/blue3/bottom.htm) is not within the allowed path(s):






页: [1]
查看完整版本: 目录权限的问题,linux空间给777权限看看,如果windows空间给internet来宾帐号读写...