return [null, null];
}
$appName = !empty($path) ? array_shift($path) : null;
// 解析控制器
$controller = !empty($path) ? array_shift($path) : $this->rule->config('default_controller');
if ($controller && !preg_match('/^[A-Za-z0-9][\w|\.]*$/', $controller)) {
throw new HttpException(404, 'controller not exists:' . $controller);
}
// 解析操作
$action = !empty($path) ? array_shift($path) : $this->rule->config('default_action');
$var = [];
// 解析额外参数
if ($path) {
preg_replace_callback('/(\w+)\|([^\|]+)/', function ($match) use (&$var) {
PHPSESSID | 09c044ab5e6fcf40cb41bde3214278f5 |
USER | nobody |
HOME | / |
HTTP_COOKIE | PHPSESSID=09c044ab5e6fcf40cb41bde3214278f5 |
HTTP_ACCEPT_ENCODING | gzip |
HTTP_ACCEPT | */* |
HTTP_HOST | www.fengyuanhuaxue.com |
HTTP_USER_AGENT | Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com) |
REDIRECT_STATUS | 200 |
SERVER_NAME | www.fengyuanhuaxue.com |
SERVER_PORT | 443 |
SERVER_ADDR | 10.19.93.224 |
REMOTE_PORT | 51908 |
REMOTE_ADDR | 104.206.148.138 |
SERVER_SOFTWARE | nginx/1.18.0 |
GATEWAY_INTERFACE | CGI/1.1 |
HTTPS | on |
REQUEST_SCHEME | https |
SERVER_PROTOCOL | HTTP/1.1 |
DOCUMENT_ROOT | /data/user/htdocs/public |
DOCUMENT_URI | /index.php/kozluk-slike/kozluk-2012-hatma/hatma-20125-255 |
REQUEST_URI | /index.php/kozluk-slike/kozluk-2012-hatma/hatma-20125-255 |
SCRIPT_NAME | /index.php |
CONTENT_LENGTH | |
CONTENT_TYPE | |
REQUEST_METHOD | GET |
QUERY_STRING | |
PATH_INFO | /kozluk-slike/kozluk-2012-hatma/hatma-20125-255 |
SCRIPT_FILENAME | /data/user/htdocs/public/index.php |
FCGI_ROLE | RESPONDER |
PHP_SELF | /index.php/kozluk-slike/kozluk-2012-hatma/hatma-20125-255 |
REQUEST_TIME_FLOAT | 1714102317.1678 |
REQUEST_TIME | 1714102317 |