thinkphp6入口文件.php 后面的php会被识别为控制器

浏览:888 发布日期:2020/06/28 分类:求助交流
在linux上或者mac上通过入口文件访问加.php 后面的php会被识别为控制器
windows平台正常访问
windows mac Linux三个平台均使用nginx

url访问类似:
http://localhost/index.php/
http://localhost/index.php/upload
时 mac linux会将index.php的php识别为控制器
windows正常识别

入口文件代码如下namespace think;
require __DIR__ . '/../vendor/autoload.php';
// 执行HTTP应用并响应
$http = (new App())->http;

$response = $http -> name('admin') -> run();

$response -> send();

$http -> end($response);
最佳答案
评论( 相关
后面还有条评论,点击查看>>