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;
PHPSESSID | q5rj5mp5fg7co3b5vbet74lmi4 |
USER | www |
HOME | /home/www |
HTTP_COOKIE | PHPSESSID=q5rj5mp5fg7co3b5vbet74lmi4 |
HTTP_ACCEPT_ENCODING | gzip |
HTTP_ACCEPT | */* |
HTTP_HOST | www.yndianbai.com |
HTTP_USER_AGENT | Mozilla/5.0 (compatible; MJ12bot/v1.4.8; http://mj12bot.com/) |
PATH_INFO | |
REDIRECT_STATUS | 200 |
SERVER_NAME | yndianbai.com |
SERVER_PORT | 80 |
SERVER_ADDR | 103.47.82.200 |
REMOTE_PORT | 44034 |
REMOTE_ADDR | 23.90.23.90 |
SERVER_SOFTWARE | nginx/1.16.1 |
GATEWAY_INTERFACE | CGI/1.1 |
REQUEST_SCHEME | http |
SERVER_PROTOCOL | HTTP/1.1 |
DOCUMENT_ROOT | /www/wwwroot/yndianbai.com/public |
DOCUMENT_URI | /index.php |
REQUEST_URI | //%E6%B5%8B%E8%AF%95 |
SCRIPT_NAME | /index.php |
CONTENT_LENGTH | |
CONTENT_TYPE | |
REQUEST_METHOD | GET |
QUERY_STRING | s=/%E6%B5%8B%E8%AF%95 |
SCRIPT_FILENAME | /www/wwwroot/yndianbai.com/public/index.php |
FCGI_ROLE | RESPONDER |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1713419821.5846 |
REQUEST_TIME | 1713419821 |
DS | / |
ROOT_PATH | /www/wwwroot/yndianbai.com/ |
APP_PATH | /www/wwwroot/yndianbai.com/app/ |
WWW_ROOT | /www/wwwroot/yndianbai.com/public/ |
WOO_PATH | /www/wwwroot/yndianbai.com/woo/ |
ADDONS_PATH | /www/wwwroot/yndianbai.com/addons/ |
APP_CACHE_DIR | /www/wwwroot/yndianbai.com/data/cache/ |