>php教程 >php手册 >Warning: session_start() [function.session-start]: open_base

Warning: session_start() [function.session-start]: open_base

WBOY
WBOY원래의
2016-06-13 09:55:271040검색

Warning: session_start() [function.session-start]: open_basedir restriction in effect. File解决方法

Warning: include() [function.include]: open_basedir restriction in effect. File(/www/webpublic_html/admin/inc/inc.php教程) is not within the allowed path(s): (/www/webpublic_html/searchhight:/tmp) in /www/webpublic_html/searchhight/index.php on line 2

Warning: include(/www/webpublic_html/admin/inc/inc.php) [function.include]: failed to open stream: Operation not permitted in /www/webpublic_html/searchhight/index.php on line 2

Warning: include() [function.include]: Failed opening '/www/webpublic_html/admin/inc/inc.php' for inclusion (include_path='.:/www/wdlinux/php-5.2.17/lib/php') in /www/webpublic_html/searchhight/index.php on line 2

Fatal error: Class 'Db' not found in /www/webpublic_html/searchhight/index.php on line 3


Fatal error : session_start() [function.session-start]: Failed to initialize storage module: files (path: ) in E:footloginlogin.php on line 4

开启了session_start()后出现了这个问题。
php.ini 的open_basedir中加入C:WINDOWSTEMP

,修改.ini文件是很容易出错的。因为该配置文件不是仅仅服务一个程序,所以修改配置文件,带来的后果

可能有很大的影响。通过

ini_set ( 'session.save_path' , dirname ( __FILE__ ) . '/../dirname/' ) ;

성명:
본 글의 내용은 네티즌들의 자발적인 기여로 작성되었으며, 저작권은 원저작자에게 있습니다. 본 사이트는 이에 상응하는 법적 책임을 지지 않습니다. 표절이나 침해가 의심되는 콘텐츠를 발견한 경우 admin@php.cn으로 문의하세요.