看错误象你的设置不对,在WebServer中找找问题吧,你的D盘上没有TMP这个目录?

解决方案 »

  1.   

    有这个目录!
    我想也是这个问题!!!但不知如何解决!!
    请教大侠,如何配置php4,使它能够实现session及cookie的功能!!!
    多谢!!!
      

  2.   

    上面的那个路径问题好象已经解决了!祸不单行,又碰到了新问题!!!
    我用win2000 + apache 1.3.9 + php4.04 建立了一个php环境, 
    可以运行php了,但是在使用session的时候老是出现如下错误信息 
    请教各位大侠!!该如何解决!!!多谢!!!十万火极!!! 显示的错误及结果: 
    Warning: Cannot send session cache limiter - headers already sent (output started at e:\glc\chhutian_emall\emall_php\mail.php:2) in e:\glc\chhutian_emall\emall_php\mail.php on line 4 
    呵呵,您刚刚! 源码mail.php) 
    //这是文件Session_time.php 
    session_start();//初始化一个Session 
    session_register('counter');//Session变量用于保存计数器 
    session_register('timeAtLastLoad');//Session变量用于保存最后装入的时间 $timeNow=time();//当前时间 
    $counter++;//增加计数 
    $timeLapsed=$timeNow - $timeAtLastLoad;//计算两次时间间隔 
    if($counter>1) 

    echo "呵呵,您刚刚$timeLapsed秒前访问过本网页!"; 

    else 

    echo "第一次访问本页?刷新一下看看!"; 

    $timeAtLastLoad=$timeNow; 
    ?> 在下感激不尽!!!!! 
      

  3.   

    session_register("counter");
    session_register("timeAtLastLoad");
    我都这么用呀!
      

  4.   

    谢谢各位!
    终于摆平了!!
    原来是我的php配置有点问题!!!我给 大家加分了!!