php.ini 中设置 session.save_path = c:\winnt\temp ,重启web服务器。header之前不能有输出

解决方案 »

  1.   

    session.save_path 没有配置
    哈哈,早期的小鸟,你怎么总是在着泡着呢
      

  2.   

    http://www.eaoo.com/design/list.asp?classid=2&Nclassid=9
      

  3.   

    各位高人:
        谁能给我一段代码?只要在两个网页之间传递一个变量就行了,不要给我讲什么session了,请写出来到底怎么用,我已经试过好几次了,都不行:(
        请帮帮忙吧!只要成功,另开贴子给分!急呀!
      

  4.   

    php.ini 中设置 session.save_path = c:\winnt\temp ,重启web服务器。然后把用到header函数跳转的地方都换成echo  "<script>window.location  =\"$PHP_SELF\";</script>";    这样跳转
      

  5.   

    01.php
    <?php
    session_start();
    session_register('my');
    $_SESSION['my'] = "你好啊!";
    ?>02.php
    <?php
    session_start();
    session_register('my');
    $my = $_SESSION["my"];
    echo $my;
    ?>
      

  6.   

    php.ini 中设置 session.save_path = c:\temp 
    在c盘建个文件名起为temp
      

  7.   

    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
     
    很明显了,就是路径的问题了
      

  8.   

    Warning: Cannot modify header information - headers already sent by (output started at C:\Program Files\Apache Group\Apache2\htdocs\check.php:2) in C:\Program Files\Apache Group\Apache2\htdocs\check.php on line 22php.ini里面设置output_buffering = 4096