这网站我重新上传了一遍。就成这样了。那位大虾能帮个忙啊。
Warning: session_save_path() [function.session-save-path]: open_basedir restriction in effect. File(/www/user/zh/ou/zhoutang/shop/cache) is not within the allowed path(s): (/home/alwayspi/:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/alwayspi/public_html/shop/includes/functions/sessions.php on line 143Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/alwayspi/public_html/shop/includes/functions/sessions.php:143) in /home/alwayspi/public_html/shop/includes/functions/sessions.php on line 100Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/alwayspi/public_html/shop/includes/functions/sessions.php:143) in /home/alwayspi/public_html/shop/includes/functions/sessions.php on line 100Warning: Cannot modify header information - headers already sent by (output started at /home/alwayspi/public_html/shop/includes/functions/sessions.php:143) in /home/alwayspi/public_html/shop/includes/init_includes/init_templates.php on line 78

解决方案 »

  1.   

    在php的安全模式下目录相关的设置程序要受到一定的限制。
      

  2.   

    1.你的session tmp目录没定好
    2.你在session start前有输出,但也可能是上面1.引起的,解决1后这个问题也不出现
      

  3.   

    File(/www/user/zh/ou/zhoutang/shop/cache) is not within the allowed path(s): 目录无权限.
      

  4.   

    你要把 cache 目录权限设置 777 或者 755
      

  5.   

    服务器php.ini开启了open_basedir,
    其值是否设为了网站根目录?
    否则容易出现这样的问题。
      

  6.   

    第1个错误,尝试在apache安装的同级目录(以windows2000server为例,比如apache安装在的d:\apache2,就在d:\  下建立一个名称为tmp的文件夹)建立一个名称为“tmp”的文件夹;其余的,启用session的语句前面不能有输出的语句。
      

  7.   

    在session_start 使用之前,你的页面就开始使用session了,所以把session 放在PHP文件的最前面就应该可以解决,我以前也有过相似的经历
      

  8.   

    这样说吧,你在本地和服务器上的绝对路径是不同的,
    而你是使用自定的session_save_path,造成出错
    解决办法是把本地的目录结构和网站保持一致(绝对路径)
    或者使用$_SERVER['DOCUMENT_ROOT']+子目录