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() [<a href='function.session-start'>function.session-start</a>]: 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/' ) ;