Warning: require_once(__DIR__/public/index.php) [function.require-once]: failed to open stream: No such file or directory in D:\wzfuq\APMServ5.2.6\www\htdocs\index.php on line 21Fatal error: require_once() [function.require]: Failed opening required '__DIR__/public/index.php' (include_path='.;C:\php5\pear') in D:\wzfuq\APMServ5.2.6\www\htdocs\index.php on line 21

解决方案 »

  1.   

    一种可能,文件不存在。
    另一种可能,一般服务器有防止跨站的防护,跨站的意思是一个只能访问一定范围内的代码,如果是宝塔,项目根目录有user.ini,在里面配置一下,把项目的目录指向项目的根目录就可以了。
      

  2.   

    我是本地电脑当服务器的,用apms想搭建一个电影网站,源码是tb买的,开启服务后就直接提示上面的代码了,也不知道怎么弄唉
      

  3.   

    __DIR__/public/index.php,__DIR__就是D:\wzfuq\APMServ5.2.6\www\htdocs\index.php文件所在的文件夹目录路径,你可以打印下__DIR__/public/index.php的真实路径,var_dump(__DIR__.'/public/index.php'); 看看是否有这个文件? 应该是D:\wzfuq\APMServ5.2.6\www\htdocs/public/index.php