新手小白遇到的问题 返回首页报错404 下面这是admin.PHP文件源码 define('APP_PATH', __DIR__ . '/../application/');// 判断是否安装FastAdminif (!is_file(
新手小白遇到的问题
define('APP_PATH', __DIR__ . '/../application/');// 判断是否安装FastAdminif (!is_file(APP_PATH . 'admin/command/Install/install.lock')){ header("location:./install.php"); exit;}// 加载框架引导文件require __DIR__ . '/../thinkphp/base.php';// 绑定到admin模块\think\Route::bind('admin');// 关闭路由\think\App::route(false);// 设置根url\think\Url::root('47.92.82.156');// 执行应用\think\App::run()->send();
下面是index.php源码
define('APP_PATH', __DIR__ . '/../application/');// 判断是否安装FastAdminif (!is_file(APP_PATH . 'admin/command/Install/install.lock')){ header("location:./install.php"); exit;}// 加载框架引导文件require __DIR__ . '/../thinkphp/start.php';
下面是router.php源码
if (is_file($_SERVER["DOCUMENT_ROOT"] . $_SERVER["REQUEST_URI"])) { return false; } else { require __DIR__ . "/index.php";}
搞不懂是哪里除了问题
来源地址:https://blog.csdn.net/m0_63872657/article/details/128899666
--结束END--
本文标题: 语法解析错误: syntax error, unexpected ‘��‘ (T_STRING), expecting ‘,‘ or ‘;‘
本文链接: https://www.lsjlt.com/news/396889.html(转载时请注明来源链接)
有问题或投稿请发送至: 邮箱/279061341@qq.com QQ/279061341
下载Word文档到电脑,方便收藏和打印~
2024-02-29
2024-02-29
2024-02-29
2024-02-29
2024-02-29
2024-02-29
2024-02-29
2024-02-29
2024-02-29
2024-02-29
回答
回答
回答
回答
回答
回答
回答
回答
回答
回答
0