$path = $this->rule->parseUrlPath($url);
if (empty($path)) {
return [null, null];
}
// 解析控制器
$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;
$var = [];
// 解析额外参数
if ($path) {
preg_replace_callback('/(\w+)\|([^\|]+)/', function ($match) use (&$var) {
55qH5Z!O5Zu96ZmF57q@5LiK5aix5LmQ_html |
PHPSESSID | 025ffae2cbed67df653c11c73b846856 |
USER | www |
HOME | /home/www |
SCRIPT_NAME | /index.php |
REQUEST_URI | /55qH5Z!O5Zu96ZmF57q@5LiK5aix5LmQ.html |
QUERY_STRING | 55qH5Z!O5Zu96ZmF57q@5LiK5aix5LmQ.html |
REQUEST_METHOD | GET |
SERVER_PROTOCOL | HTTP/1.1 |
GATEWAY_INTERFACE | CGI/1.1 |
REDIRECT_QUERY_STRING | 55qH5Z!O5Zu96ZmF57q@5LiK5aix5LmQ.html |
REDIRECT_URL | /55qH5Z!O5Zu96ZmF57q@5LiK5aix5LmQ.html |
REMOTE_PORT | 56168 |
SCRIPT_FILENAME | /www/wwwroot/www/117.50.120.41/public/index.php |
SERVER_ADMIN | webmaster@example.com |
CONTEXT_DOCUMENT_ROOT | /www/wwwroot/www/117.50.120.41/public |
CONTEXT_PREFIX | |
REQUEST_SCHEME | http |
DOCUMENT_ROOT | /www/wwwroot/www/117.50.120.41/public |
REMOTE_ADDR | 45.38.154.98 |
SERVER_PORT | 80 |
SERVER_ADDR | 10.61.184.243 |
SERVER_NAME | www.fsgykg.com |
SERVER_SOFTWARE | Apache |
SERVER_SIGNATURE | Apache Server at www.fsgykg.com Port 80 |
LD_LIBRARY_PATH | /www/server/apache/lib |
PATH | /sbin:/usr/sbin:/bin:/usr/bin |
HTTP_COOKIE | PHPSESSID=025ffae2cbed67df653c11c73b846856 |
HTTP_ACCEPT_ENCODING | gzip |
HTTP_ACCEPT | */* |
HTTP_HOST | www.fsgykg.com |
HTTP_USER_AGENT | Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com) |
proxy-nokeepalive | 1 |
REDIRECT_STATUS | 200 |
FCGI_ROLE | RESPONDER |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1714171276.4418 |
REQUEST_TIME | 1714171276 |