在php的文件夹里建立一个tmp文件夹看看
解决方案 »
- 咨询一下编写日历的思路!
- 求个正则...
- 新学PHP 请教问题
- php 怎么才能读取CPU的ID和内存的ID 不要提phpsysinfo,那个我看不懂.最好能直接出ID值来
- 一个很难的问题
- 怎么打印半个空格?
- 简单问题,麻烦各位高手!!!
- 完全用PHP实现虚拟二级域名http://name@domain/的问题
- 定制php4的session功能
- 有人想收个徒弟吗???
- 请问:一个页面含多个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