当一切工作正常时,我已经创建了与以前相同的超级简单脚本。但不知何故停了,现在每次我尝试需要一个文件时,它给我的错误:require_once致命错误(多一次)
Fatal error: require_once(): Failed opening required 'E:\tools\EasyPHP\www/registry/registry.class.php' (include_path='.;C:\php\pear') in E:\tools\EasyPHP\www\index.php on line 18
我的索引文件:
define("APP_PATH", dirname(__FILE__)."/");
require_once(APP_PATH.'registry/registry.class.php');
这就是一切,但我仍然无法加载页面。
我应该如何设置它?我只使用Windows本地构建。
file_exists(APP_PATH.'registry/registry.class.php')给出了什么?如果为false,则根据文件的预期路径检查APP_PATH.'registry/registry.class.php' – Ing 2012-07-09 14:14:21
可能是愚蠢的问题,但存在'E:\ tools \ EasyPHP \ www/registry/registry.class.php'吗? – Florent 2012-07-09 14:15:20
是的,但它表明,它甚至不存在。 – user1512181 2012-07-09 14:23:49