首页 > PHP > Warning: session_start() [function.session-start]: open_basedir restriction in effect. File

Warning: session_start() [function.session-start]: open_basedir restriction in effect. File

2009年05月01号
查看评论 发表评论 960次浏览

在执行PHP程序的时候,出现Warning: session_start() [function.session-start]: open_basedir restriction in effect. File(C:WINDOWSTEMP) is not within the allowed path(s):

这是对站点的PHP目录做了防止跳出文件夹的权限设置,只要将PHP防止跳出目录设置去掉了就恢复正常了。就是在机站点那应该有设置
php_admin_value open_basedir /usr/local/apache  

后面就是设置的目录,把这行去掉就可以了!

类别PHP 标签
  1. hero
    发表于 2009年07月10号 19时08分22秒 | 1楼

    呵呵,你的答案正好解决了我的问提,十分开心.我自配的服务器(WAPM)终于稳定的运行起来了

  2. mbt walking shoes
    发表于 2010年06月14号 19时50分26秒 | 2楼

    i love this story and i think it’s true! thank-you for sharing it.

  3. CC Sabathia Jersey
    发表于 2010年06月16号 04时51分12秒 | 3楼

    What a talent! I’m jealous :)

  4. puma ducati shoes
    发表于 2010年07月01号 08时19分43秒 | 4楼

    :O

  5. MBT Shoes Outlet
    发表于 2010年07月22号 12时26分34秒 | 5楼

    I enjoy reading your posts, and agree with your comments

  6. cheap lacoste shoes
    发表于 2010年07月25号 12时44分24秒 | 6楼

    I visit your blog, I can feel love is all around :) enjoy your words so much.

  7. ghd hair straighteners
    发表于 2010年07月26号 11时20分11秒 | 7楼

    My heart goes out to all of you facing this.

  8. apply for student loans
    发表于 2010年09月04号 17时35分06秒 | 8楼

    That is a actually well thought out post. I certainly enjoyed reading it. Thanksapply for student loans