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\这个目录存在
补充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/ [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 

解决方案 »

  1.   

    这个Apache的log是说E:/liangzizaixian/function.session-start这个东西不存在而你上一帖子里有这样的错误Fatal 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 既有可能是你的源码本身的问题  也有可能是你配置的问题我没在windows下配置过服务器  只能回答这点东西
      

  2.   

    session没有配置临时目录?
    或者目录没有相应权限?