php 警告: session_start() [function.session-start]: open(/tmp/sess_e07..42c14904, O_RDWR)
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/11779889/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Warning: session_start() [function.session-start]: open(/tmp/sess_e07..42c14904, O_RDWR)
提问by Jam Ville
I got this error when I changed my index.php file into index.html file and then changed back again to its original index.php file
当我将 index.php 文件更改为 index.html 文件然后再次更改回其原始 index.php 文件时出现此错误
Can anyone tell me what to do to prevent this error?
谁能告诉我怎么做才能防止这个错误?
Warning: session_start() [function.session-start]: open(/tmp/sess_e0725de9954b..2c14904, O_RDWR) failed: Permission denied (13) in /home/accn/public_html/dbc.php on line 42
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/accn/public_html/dbc.php:42) in /home/acceptin/public_html/dbc.php on line 42
警告:session_start() [function.session-start]: open(/tmp/sess_e0725de9954b..2c14904, O_RDWR) failed: Permission denied (13) in /home/accn/public_html/dbc.php on line 42
警告:session_start() [function.session-start]:无法发送会话缓存限制器 - 在 /home/acceptin/public_html/dbc.php 中已发送的标头(输出开始于 /home/accn/public_html/dbc.php:42)在第 42 行
PLEASE HELP! badly need to fix this
请帮忙!急需解决这个问题
回答by Pathic
Create folder "tmp" on your root directory with permission 777 then before start_session,
使用权限 777 在您的根目录上创建文件夹“tmp”,然后在 start_session 之前,
ini_set('session.save_path', 'tmp');
Done
完毕

