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->rule->getConfig('url_param_type')) {
$var += $path;
USER | www |
HOME | /home/www |
HTTP_HOST | www.cccsrrc.com |
HTTP_USER_AGENT | claudebot |
HTTP_ACCEPT | */* |
PATH_INFO | |
REDIRECT_STATUS | 200 |
SERVER_NAME | chaoyue-test.com |
SERVER_PORT | 80 |
SERVER_ADDR | 172.16.239.70 |
REMOTE_PORT | 60636 |
REMOTE_ADDR | 3.235.199.19 |
SERVER_SOFTWARE | nginx/1.15.10 |
GATEWAY_INTERFACE | CGI/1.1 |
REQUEST_SCHEME | http |
SERVER_PROTOCOL | HTTP/1.1 |
DOCUMENT_ROOT | /www/wwwroot/xinwei-lab.com |
DOCUMENT_URI | /index.php |
REQUEST_URI | /tag/NB-IOT%E5%9F%BA%E7%AB%99%E9%9C%80%E8%A6%81%E5%81%9A%E5%85%A5%E7%BD%91%E8%AE%A4%E8%AF%81%E5%90%97 |
SCRIPT_NAME | /index.php |
CONTENT_LENGTH | |
CONTENT_TYPE | |
REQUEST_METHOD | GET |
QUERY_STRING | s=/tag/NB-IOT%E5%9F%BA%E7%AB%99%E9%9C%80%E8%A6%81%E5%81%9A%E5%85%A5%E7%BD%91%E8%AE%A4%E8%AF%81%E5%90%97 |
SCRIPT_FILENAME | /www/wwwroot/xinwei-lab.com/index.php |
FCGI_ROLE | RESPONDER |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1710849690.1089 |
REQUEST_TIME | 1710849690 |