Warning: session_start() [function.session-start]: open_basedir restriction in effect. File(D:\WINDOWS\TEMP\) is not within the allowed path(s): (E:/liangzizaixian/;F:/APMServ/APMServ5.2.6/tmp/uploadtemp/;) in E:\liangzizaixian\ygl.php on line 4Fatal error: session_start() [<a href='function.session-start'>function.session-start</a>]: Failed to initialize storage module: files (path: ) in E:\liangzizaixian\ygl.php on line 4

解决方案 »

  1.   

    没在windows下弄过服务器你看看D:\WINDOWS\TEMP\这个目录存在吗 
    看看源文件E:\liangzizaixian\ygl.php 第一四行是什么。
      

  2.   

    require"config.php";
    session_start();
    $ip1=$REMOTE_ADDR;
    $today_time=date("Y")."年".date("n")."月".date("j")."日";
    $todate=date("Y")."/".date("n")."/".date("j");
    $stemp=date("YmjHis");
    function errorview($msg)
    {
    print "<html><head></head><body><script>alert('$msg');history.back();</script></body></html>";
    }
    D:\WINDOWS\TEMP\这个目录存在
      

  3.   

    补充apache运行日志
    [Fri Feb 19 11:20:53 2010] [error] [client 120.3.30.63] File does not exist: E:/liangzizaixian/function.session-start, referer: http://liangzil.gicp.net/
    [Fri Feb 19 11:28:14 2010] [error] [client 120.3.30.63] File does not exist: E:/liangzizaixian/function.session-start, referer: http://liangzil.gicp.net/
    [Fri Feb 19 11:41:28 2010] [error] [client 120.3.30.63] File does not exist: E:/liangzizaixian/function.session-start, referer: http://liangzil.gicp.net/
      

  4.   

    [function.session-start}:
    Object not found!
    The requested URL was not found on this server. The link on the referring page seems to be wrong or outdated. Please inform the author of that page about the error. If you think this is a server error, please contact the webmaster. Error 404
    liangzil.gicp.net
    02/19/10 13:19:49
    Apache/2.2.9 (APMServ) mod_ssl/2.2.9 OpenSSL/0.9.8h PHP/5.2.6 
      

  5.   

    E:/liangzizaixian 存在吗。看看里面的语法