问题描述
当我将index.php文件更改为index.html文件,然后再次变回其原始index.php文件时,出现了此错误
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
有人可以告诉我该怎么做以防止出现此错误吗?
Can anyone tell me what to do to prevent this error?
警告:session_start()[function.session-start]:无法发送会话缓存限制器-/home/acceptin/public_html/中已发送的标头(输出从/home/accn/public_html/dbc.php:42开始) dbc.php在第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
请帮助!急需解决此问题
PLEASE HELP! badly need to fix this
推荐答案
然后在start_session之前,以权限777在根目录上创建文件夹"tmp",
Create folder "tmp" on your root directory with permission 777 then before start_session,
ini_set('session.save_path', 'tmp');
完成
这篇关于警告:session_start()[function.session-start]:打开(/tmp/sess_e07..42c14904,O_RDWR)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!