救命呀,大哥们!!!!解决了立即结分

gennrain780702 2004-04-05 10:33:24
我的php出问题了:我在公司的局域网内建了个php网站,原来用的好好的,今天

我打开一个网页要登陆,却出现了问题,如下:
Warning: session_start() [function.session-start]: open(/tmp\sess_c608094857a58b859e6559fa2b24147d, O_RDWR) failed: No such file or directory (2) in d:\ywyt\yw\admin\login.php on line 11

Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at d:\ywyt\yw\admin\login.php:11) in d:\ywyt\yw\admin\login.php on line 11

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at d:\ywyt\yw\admin\login.php:11) in d:\ywyt\yw\admin\login.php on line 11

Warning: Cannot modify header information - headers already sent by (output started at d:\ywyt\yw\admin\login.php:11) in d:\ywyt\yw\admin\login.php on line 47

中间是我的登陆对话框

Warning: Unknown(): open(/tmp\sess_c608094857a58b859e6559fa2b24147d, O_RDWR) failed: No such file or directory (2) in Unknown on line 0

Warning: Unknown(): Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp) in Unknown on line 0

请问是什么问题呀,各位大哥!


...全文
89 7 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
7 条回复
切换为时间正序
请发表友善的回复…
发表回复
Cain 2004-04-05
  • 打赏
  • 举报
回复
session路径是否正确.
另外一个11行session_start();的时候前面有输出!
Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at d:\ywyt\yw\admin\login.php:11) in d:\ywyt\yw\admin\login.php on line 11
ice_berg16 2004-04-05
  • 打赏
  • 举报
回复
SESSION文件保存目录不存在。建一个就行了。
查看PHP.INI中
session.save_path = /tmp
改成你要保存的路径如c:windows/temp
重启服务器
多菜鸟 2004-04-05
  • 打赏
  • 举报
回复
phinfo()里看一下session.save_path的路径是否是有效的。
多菜鸟 2004-04-05
  • 打赏
  • 举报
回复
session设置问题
session.save_path=你的目录
就可以了。
gennrain780702 2004-04-05
  • 打赏
  • 举报
回复
可我没有删除session文件的目录呀????
istrue 2004-04-05
  • 打赏
  • 举报
回复
删了session文件的目录d:\ywyt\yw\admin\,请重建!
gennrain780702 2004-04-05
  • 打赏
  • 举报
回复
我没有更改我的源程序!

21,893

社区成员

发帖
与我相关
我的任务
社区描述
从PHP安装配置,PHP入门,PHP基础到PHP应用
社区管理员
  • 基础编程社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧