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 |
SCRIPT_NAME | /index.php |
REQUEST_URI | /Info/Winning-bid/823.html |
QUERY_STRING | s=/Info/Winning-bid/823.html |
REQUEST_METHOD | GET |
SERVER_PROTOCOL | HTTP/1.1 |
GATEWAY_INTERFACE | CGI/1.1 |
REDIRECT_QUERY_STRING | s=/Info/Winning-bid/823.html |
REDIRECT_URL | /Info/Winning-bid/823.html |
REMOTE_PORT | 39304 |
SCRIPT_FILENAME | /www/wwwroot/ghysl.com/public/index.php |
SERVER_ADMIN | webmaster@example.com |
CONTEXT_DOCUMENT_ROOT | /www/wwwroot/ghysl.com/public |
CONTEXT_PREFIX | |
REQUEST_SCHEME | http |
DOCUMENT_ROOT | /www/wwwroot/ghysl.com/public |
REMOTE_ADDR | 34.230.68.214 |
SERVER_PORT | 80 |
SERVER_ADDR | 120.77.65.139 |
SERVER_NAME | ghysl.com |
SERVER_SOFTWARE | Apache |
SERVER_SIGNATURE | <address>Apache Server at ghysl.com Port 80</address> |
LD_LIBRARY_PATH | /www/server/apache/lib |
PATH | /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin |
HTTP_HOST | ghysl.com |
HTTP_USER_AGENT | claudebot |
HTTP_ACCEPT | */* |
proxy-nokeepalive | 1 |
REDIRECT_STATUS | 200 |
FCGI_ROLE | RESPONDER |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1711648488.7054 |
REQUEST_TIME | 1711648488 |