一、前提: 把網(wǎng)站從PHP7.4切換成純靜態(tài)后再切換回來,見下圖
二、然后隨便找了2個(gè)功能,見下圖
三、使用F12查看
<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006-2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <[email protected]>
// +----------------------------------------------------------------------
// [ 應(yīng)用入口文件 ]
namespace think;
if ('7.1.0' > phpversion()) {
exit('您的php版本過低,不能安裝本軟件,兼容php版本7.1~7.4,謝謝!');
}
if (phpversion() >= '8.0.0') {
exit('您的php版本太高,不能安裝本軟件,兼容php版本7.1~7.4,謝謝!');
}
define('DS', DIRECTORY_SEPARATOR);
//檢測是否已安裝CRMEB系統(tǒng)
if(file_exists("./install/") && !file_exists("./install.lock")){
if($_SERVER['PHP_SELF'] != '/index.php'){
header("Content-type: text/html; charset=utf-8");
exit("請?jiān)谟蛎夸浵掳惭b,如:<br/> www.xxx.com/index.php 正確 <br/> www.xxx.com/www/index.php 錯(cuò)誤,域名后面不能圈套目錄, 但項(xiàng)目沒有根目錄存放限制,可以放在任意目錄,apache虛擬主機(jī)配置一下即可");
}
header('Location:/install/index.php');
exit();
}
require __DIR__ . '/../vendor/autoload.php';
// 執(zhí)行HTTP應(yīng)用并響應(yīng)
$http = (new App())->http;
$response = $http->run();
$response->send();
$http->end($response);