在php的文件夹里建立一个tmp文件夹看看
解决方案 »
- linux下php的安装配置问题?
- 很sb的问题,进来指点一下。
- mysql_num_rows()报错???
- 为什么ajax的返回值无法赋值?
- 关于com的问题
- 关于文件操作的问题。
- 一个下拉列表提交的问题
- 服务器中一个端口能同时支持asp和php的页面吗?
- LINUX下如何关闭目前所有连接?
- 关于用mysqldump在局域网中导出数据问题。。急!!!
- 请问:一个页面含多个iframe,但当打开此页面时,iframe的页面还没有load得到,白了一片,请问怎样才能使iframe还没有load出来时,显示‘
- asp+access里面,如何在一个语句里执行多个sql语句,比如,在select * from news;select * from admin,在sql server中就可以用分号来区
修改php.ini
将session.save_path指向你建的那个tmp目录
重启apache
另外,在c:\php下设置了tmp目录,也就是c:\php\tmp,但为什么在下列程序中依然出错?
<?
session_start();
?>
出错信息
Warning: session_start(): open(/tmp\sess_1d2506ec8c33a38c753098ab0f2846c2, O_RDWR) failed: No such file or directory (2) in C:\Apache2\web\index1.php on line 2Warning: session_start(): Cannot send session cookie - headers already sent by (output started at C:\Apache2\web\index1.php:2) in C:\Apache2\web\index1.php on line 2Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at C:\Apache2\web\index1.php:2) in C:\Apache2\web\index1.php on line 2Warning: Unknown(): open(/tmp\sess_1d2506ec8c33a38c753098ab0f2846c2, O_RDWR) failed: No such file or directory (2) in Unknown on line 0Warning: 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