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 |
SCRIPT_NAME | /index.php |
REQUEST_URI | /0635-5032777 |
QUERY_STRING | s=/0635-5032777 |
REQUEST_METHOD | GET |
SERVER_PROTOCOL | HTTP/1.1 |
GATEWAY_INTERFACE | CGI/1.1 |
REDIRECT_QUERY_STRING | s=/0635-5032777 |
REDIRECT_URL | /0635-5032777 |
REMOTE_PORT | 41662 |
SCRIPT_FILENAME | /www/wwwroot/sdccph.com/index.php |
SERVER_ADMIN | webmaster@example.com |
CONTEXT_DOCUMENT_ROOT | /www/wwwroot/sdccph.com |
CONTEXT_PREFIX | |
REQUEST_SCHEME | http |
DOCUMENT_ROOT | /www/wwwroot/sdccph.com |
REMOTE_ADDR | 18.209.63.120 |
SERVER_PORT | 80 |
SERVER_ADDR | 10.61.30.8 |
SERVER_NAME | sdccph.com |
SERVER_SOFTWARE | Apache |
SERVER_SIGNATURE | <address>Apache Server at sdccph.com Port 80</address> |
LD_LIBRARY_PATH | /www/server/apache/lib |
PATH | /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin |
HTTP_HOST | sdccph.com |
HTTP_USER_AGENT | claudebot |
HTTP_ACCEPT | */* |
proxy-nokeepalive | 1 |
REDIRECT_STATUS | 200 |
FCGI_ROLE | RESPONDER |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1711623892.7232 |
REQUEST_TIME | 1711623892 |
__ROOT__ | ./ |