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 | /dev/null |
FCGI_ROLE | RESPONDER |
SCRIPT_FILENAME | /www/web/cheqishi_cc/public_html/index.php |
PATH_INFO | |
GATEWAY_INTERFACE | CGI/1.1 |
SERVER_SOFTWARE | nginx |
QUERY_STRING | s=/zhaoshang/1289.html |
REQUEST_METHOD | GET |
CONTENT_TYPE | |
CONTENT_LENGTH | |
SCRIPT_NAME | /index.php |
REQUEST_URI | /zhaoshang/1289.html |
DOCUMENT_URI | /index.php |
DOCUMENT_ROOT | /www/web/cheqishi_cc/public_html |
SERVER_PROTOCOL | HTTP/1.1 |
REQUEST_SCHEME | http |
REMOTE_ADDR | 54.226.222.183 |
REMOTE_PORT | 39326 |
SERVER_ADDR | 172.23.210.247 |
SERVER_PORT | 80 |
SERVER_NAME | cheqishi.cc |
REDIRECT_STATUS | 200 |
HTTP_ACCEPT | */* |
HTTP_USER_AGENT | claudebot |
HTTP_HOST | www.cheqishi.com |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1710846229.2766 |
REQUEST_TIME | 1710846229 |
APP_PATH | /www/web/cheqishi_cc/public_html/apps/ |
NOW_TIME | 1710846229 |