您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息

求助ThinkPHP无法自动运行

2024/2/24 17:10:41发布19次查看
图片如上,我都是按照书上的方法进行安装的,还是出现上面的错误,也查不出原因,刚学这个不太清楚,求大神拯救=。=
回复讨论(解决方案) 错误显示:找不到 thinkphpcommon/runtime.php
这却的位置是 thinkphp/common/runtime.php
由此可知,你使用的是 thinkphp 2 而不是 thinkphp 3
需 defined('think_path', 'thinkphp/');
或者不自己定义而由 thinkphp 自己处理
错误显示:找不到 thinkphpcommon/runtime.php
这却的位置是 thinkphp/common/runtime.php
由此可知,你使用的是 thinkphp 2 而不是 thinkphp 3
需 defined('think_path', 'thinkphp/');
或者不自己定义而由 thinkphp 自己处理
按这个改了就好了,不过很奇怪的是我下载的明明是thinkphp3.0,为嘛会变成thinkphp2.0,好奇怪
thinkphp3 的 thinkphp/thinkphp.php
是这样定义 think_path 的
defined('think_path') or define('think_path', dirname(__file__).'/');
thinkphp3 的 thinkphp/thinkphp.php
是这样定义 think_path 的
defined('think_path') or define('think_path', dirname(__file__).'/');
嗯,明白了,谢谢
该用户其它信息

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录 Product