win下安装wdb的问题

wjq 2003-12-10 07:31:43
最近换了一个服务商,把linux服务器换成win2003的全能主机,发现wdb出问题,而且连全新安装也不行,主要问题就是session问题,如果有temp文件夹就会出现500错误,如果没有temp文件夹就会出现:
Warning: session_start() [function.session-start]: open(temp\sess_340129576e479d754f4b4ca6c6d9f292, O_RDWR) failed: No such file or directory (2) in D:\wwwroot\52ecust123\wwwroot\new\global.php on line 30

Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at D:\wwwroot\52ecust123\wwwroot\new\global.php:30) in D:\wwwroot\52ecust123\wwwroot\new\global.php on line 30

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at D:\wwwroot\52ecust123\wwwroot\new\global.php:30) in D:\wwwroot\52ecust123\wwwroot\new\global.php on line 30

Warning: Cannot modify header information - headers already sent by (output started at D:\wwwroot\52ecust123\wwwroot\new\global.php:30) in D:\wwwroot\52ecust123\wwwroot\new\global.php on line 34

Warning: Cannot modify header information - headers already sent by (output started at D:\wwwroot\52ecust123\wwwroot\new\global.php:30) in D:\wwwroot\52ecust123\wwwroot\new\global.php on line 55

Warning: Cannot modify header information - headers already sent by (output started at D:\wwwroot\52ecust123\wwwroot\new\global.php:30) in D:\wwwroot\52ecust123\wwwroot\new\global.php on line 56
大家看看如何解决问题.
...全文
95 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
szjq 2003-12-12
  • 打赏
  • 举报
回复
可以在windows服务器的php.ini文件中把session的保存路径改成别的目录,/tmp目录windows下没有,所以出错了
johnpanq 2003-12-11
  • 打赏
  • 举报
回复
temp文件夹一定要有,不然session无法写入,
而且temp文件夹的权限要允许写入
itian 2003-12-11
  • 打赏
  • 举报
回复
tmp
非temp

Cannot modify header information
表示页面有输出
八成是session连锁反应出来的

21,891

社区成员

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

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