if ($this->param['auto_search']) {
$controller = $this->autoFindController($module, $path);
} else {
// 解析控制器
$controller = !empty($path) ? array_shift($path) : null;
}
if ($controller && !preg_match('/^[A-Za-z0-9][\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;
DOCUMENT_ROOT | /www/users/H10107216 |
GATEWAY_INTERFACE | CGI/1.1 |
HTTP_ACCEPT | */* |
HTTP_HOST | www.szxslzp.com |
HTTP_USER_AGENT | claudebot |
PATH | /bin |
PHPRC | /usr/gvpc/php5/etc/site/H10107216/php7.1.ini |
QUERY_STRING | s=tag/%E6%B7%B1%E5%9C%B3%E9%93%9D%E5%9E%8B%E6%9D%90%E5%A4%96%E5%A3%B3%E5%8A%A0%E5%B7%A5 |
REDIRECT_QUERY_STRING | s=tag/%E6%B7%B1%E5%9C%B3%E9%93%9D%E5%9E%8B%E6%9D%90%E5%A4%96%E5%A3%B3%E5%8A%A0%E5%B7%A5 |
REDIRECT_STATUS | 200 |
REDIRECT_URL | /tag/%E6%B7%B1%E5%9C%B3%E9%93%9D%E5%9E%8B%E6%9D%90%E5%A4%96%E5%A3%B3%E5%8A%A0%E5%B7%A5 |
REMOTE_ADDR | 44.222.82.119 |
REMOTE_PORT | 45834 |
REQUEST_METHOD | GET |
REQUEST_URI | /tag/%25E6%25B7%25B1%25E5%259C%25B3%25E9%2593%259D%25E5%259E%258B%25E6%259D%2590%25E5%25A4%2596%25E5%25A3%25B3%25E5%258A%25A0%25E5%25B7%25A5 |
SCRIPT_FILENAME | /www/users/H10107216/index.php |
SCRIPT_NAME | /index.php |
SERVER_ADDR | 124.172.154.20 |
SERVER_ADMIN | you@example.com |
SERVER_NAME | www.szxslzp.com |
SERVER_PORT | 80 |
SERVER_PROTOCOL | HTTP/1.1 |
SERVER_SIGNATURE | |
SERVER_SOFTWARE | Apache |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1711720718.4996 |
REQUEST_TIME | 1711720718 |