Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
614 views
in Technique[技术] by (71.8m points)

include $dir; 这个加载不出来路径

网站是一个调用数据库的管理后台,在windiws+apache和linux+apache环境下都能正常运行,但是在AMH下面不管是LAMP还是lnmp都不能正常显示后台数据,能登陆网站却就是不显示相信数据。也没有任何报错信息,查看不到具体是哪里的问题。程序没有使用其他的什么附加环境语言开发
具体出错的语句
$dir = FANY_ROOT . self::$_coreClasses[$className];
include $dir;
我用file_exists去打开这个路径是可以的,但是它是因为用mvc架构,它生成的缓存php文件中有include去加载这个路径的php文件时,文件引用不进来


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

错误是什么,打开框架的调试模式或者PHP的错误信息看看。


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...