$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) {
_vstime | 1755821019 |
PHPSESSID | gn7aojhtcgdqm8jf8l9am372de |
TEMP | /tmp |
TMPDIR | /tmp |
TMP | /tmp |
PATH | /usr/local/bin:/usr/bin:/bin |
USER | www |
HOME | /home/www |
HTTP_COOKIE | _vstime=1755821019; PHPSESSID=gn7aojhtcgdqm8jf8l9am372de; |
HTTP_REFERER | / |
HTTP_ACCEPT | */* |
HTTP_USER_AGENT | Mozilla/5.0 (compatible; Baiduspider/2.0; +http://www.m.taiyuestone168.com/search/spider.html) |
HTTP_HOST | www.smartveingroups.com |
REDIRECT_STATUS | 200 |
SERVER_NAME | www.smartveingroups.com |
SERVER_PORT | 443 |
SERVER_ADDR | 121.46.201.58 |
REMOTE_PORT | 44240 |
REMOTE_ADDR | 156.227.72.130 |
SERVER_SOFTWARE | nginx/1.21.4 |
GATEWAY_INTERFACE | CGI/1.1 |
HTTPS | on |
REQUEST_SCHEME | https |
SERVER_PROTOCOL | HTTP/1.1 |
DOCUMENT_ROOT | /data/www/smartveingroups.com |
DOCUMENT_URI | /index.php |
REQUEST_URI | /%3Chr%3E%3Ccenter%3Enginx%3C/center%3E |
SCRIPT_NAME | /index.php |
CONTENT_LENGTH | |
CONTENT_TYPE | |
REQUEST_METHOD | GET |
QUERY_STRING | s=/%3Chr%3E%3Ccenter%3Enginx%3C/center%3E |
SCRIPT_FILENAME | /data/www/smartveingroups.com/index.php |
FCGI_ROLE | RESPONDER |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1755880103.0009 |
REQUEST_TIME | 1755880103 |