Warning: Unknown: failed to open stream: Permission denied in Unknown on line 0Warning: Unknown: Failed opening 'D:/okbuy/index.php' for inclusion (include_path='.;C:\php5\pear') in Unknown on line 0公司的电脑用的是 win7,家里面的电脑用 winxp,相同的代码拷贝到家里面的电脑,就提示上面的问题,如果把  index.php  只 echo phpinfo(); 不会有错,写上实际的代码就有错,请教各位大侠,这个问题怎么处理。phpincludestreampathhtml

解决方案 »

  1.   

    你是否在你本地的电脑启用了APC? 或者是其他PECL扩展库?
    之前在win上遇到过类似的问题,最终无果而终
      

  2.   

    其他的程序执行的了,就是这个执行不了。我怀疑是不是 win7与xp之间的权限问题
      

  3.   


    ;;;;;;;;;;;;;;;;;;;;;;;;;
    ; Paths and Directories ;
    ;;;;;;;;;;;;;;;;;;;;;;;;;; UNIX: "/path1:/path2"
    ;include_path = ".:/php/includes"
    ;
    ; Windows: "\path1;\path2"
    ;include_path = ".;c:\php\includes"php.ini 中这一段根本没有启用,我也没有这个目录