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_HOST | www.ronxn.cn |
HTTP_USER_AGENT | Mozilla/5.0 (Linux; Android 5.0; SM-G900P Build/LRX21T) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.104 Mobile Safari/537.36 |
HTTP_REFERER | //td> |
HTTP_ACCEPT_LANGUAGE | zh-cn |
HTTP_ACCEPT | text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9 |
HTTP_CONNECTION | Keep-Alive |
PATH_INFO | |
REDIRECT_STATUS | 200 |
SERVER_NAME | www.ronxn.com |
SERVER_PORT | 80 |
SERVER_ADDR | 219.234.6.209 |
REMOTE_PORT | 59362 |
REMOTE_ADDR | 104.149.130.250 |
SERVER_SOFTWARE | nginx/1.15.10 |
GATEWAY_INTERFACE | CGI/1.1 |
REQUEST_SCHEME | http |
SERVER_PROTOCOL | HTTP/1.1 |
DOCUMENT_ROOT | /home/wwwroot/www.ronxn.com/public |
DOCUMENT_URI | /index.php |
REQUEST_URI | //td> |
SCRIPT_NAME | /index.php |
CONTENT_LENGTH乳娘村 | |
CONTENT_TYPE | |
REQUEST_METHOD | GET |
QUERY_STRING | s=/https:/www.cyfy.cn |
SCRIPT_FILENAME | /home/wwwroot/www.ronxn.com/public/index.php |
FCGI_ROLE | RESPONDER |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1611990768.2884 |
REQUEST_TIME | 1611990768 |
APP_PATH | /home/wwwroot/www.ronxn.com/public/application/ |
ROOT_PATH | /home/wwwroot/www.ronxn.com/ |
IN_SYSTEM | true |