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;
USER | www |
HOME | /home/www |
HTTP_ACCEPT_ENCODING | gzip |
HTTP_ACCEPT | */* |
HTTP_HOST | www.hmqy.com.cn |
HTTP_USER_AGENT | Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com) |
PATH_INFO | |
REDIRECT_STATUS | 200 |
SERVER_NAME | haomingqinye.hjyhy.com |
SERVER_PORT | 80 |
SERVER_ADDR | 172.21.51.255 |
REMOTE_PORT | 39618 |
REMOTE_ADDR | 104.140.79.42 |
SERVER_SOFTWARE | nginx/1.20.2 |
GATEWAY_INTERFACE | CGI/1.1 |
REQUEST_SCHEME | http |
SERVER_PROTOCOL | HTTP/1.1 |
DOCUMENT_ROOT | /www/wwwroot/haomingqinye |
DOCUMENT_URI | /index.php |
REQUEST_URI | /%E0%B9%84%E0%B8%AE%E0%B9%82%E0%B8%A5%E0%B8%AD%E0%B8%AD%E0%B8%99%E0%B9%84%E0%B8%A5%E0%B8%99%E0%B9%8C/ |
SCRIPT_NAME | /index.php |
CONTENT_LENGTH | |
CONTENT_TYPE | |
REQUEST_METHOD | GET |
QUERY_STRING | s=/%E0%B9%84%E0%B8%AE%E0%B9%82%E0%B8%A5%E0%B8%AD%E0%B8%AD%E0%B8%99%E0%B9%84%E0%B8%A5%E0%B8%99%E0%B9%8C/ |
SCRIPT_FILENAME | /www/wwwroot/haomingqinye/index.php |
FCGI_ROLE | RESPONDER |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1714083852.9314 |
REQUEST_TIME | 1714083852 |
APP_PATH | /www/wwwroot/haomingqinye/application/ |