// 解析模块
$module = $this->app->config('app_multi_module') ? array_shift($path) : null;
if ($this->param['auto_search']) {
$controller = $this->autoFindController($module, $path);
} else {
// 解析控制器
$controller = !empty($path) ? array_shift($path) : null;
}
if ($controller && !preg_match('/^[A-Za-z][\w|\.]*$/', $controller)) {
throw new HttpException(404, 'controller not exists:' . $controller);
}
// 解析操作
$action = !empty($path) ? array_shift($path) : null;
// 解析额外参数
if ($path) {
if ($this->app['config']->get('url_param_type')) {
/news/20180403/442_html |
REDIRECT_STATUS | 200 |
HTTP_ACCEPT | */* |
HTTP_USER_AGENT | claudebot |
HTTP_HOST | www.huanbao1hao.com |
PATH | C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Windows\system32\config\systemprofile\AppData\Local\Microsoft\WindowsApps |
SystemRoot | C:\Windows |
COMSPEC | C:\Windows\system32\cmd.exe |
PATHEXT | .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC |
WINDIR | C:\Windows |
SERVER_SIGNATURE | |
SERVER_SOFTWARE | Apache/2.4.53 (Win64) OpenSSL/1.1.1n PHP/7.4.28 |
SERVER_NAME | www.huanbao1hao.com |
SERVER_ADDR | 172.30.79.100 |
SERVER_PORT | 80 |
REMOTE_ADDR | 3.238.162.113 |
DOCUMENT_ROOT | D:/wwwRoot/xthuanbao |
REQUEST_SCHEME | http |
CONTEXT_PREFIX | |
CONTEXT_DOCUMENT_ROOT | D:/wwwRoot/xthuanbao |
SERVER_ADMIN | admin@example.com |
SCRIPT_FILENAME | D:/wwwRoot/xthuanbao/index.php |
REMOTE_PORT | 55110 |
REDIRECT_URL | /news/20180403/442.html |
REDIRECT_QUERY_STRING | /news/20180403/442.html |
GATEWAY_INTERFACE | CGI/1.1 |
SERVER_PROTOCOL | HTTP/1.1 |
REQUEST_METHOD | GET |
QUERY_STRING | /news/20180403/442.html |
REQUEST_URI | /news/20180403/442.html |
SCRIPT_NAME | /index.php |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1711698838.9367 |
REQUEST_TIME | 1711698838 |
PATH_INFO | /news/20180403/442.html |
APP_PATH | D:\wwwRoot\xthuanbao/application/ |