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;
Call Stack
Environment Variables
_vstime | 1685678500 |
USER | www |
HOME | /home/www |
FCGI_ROLE | RESPONDER |
SCRIPT_FILENAME | /www/wwwroot/moqingxi/public/index.php |
QUERY_STRING | s=/tag/%E5%8C%85%E5%A4%B4/news/p12.html |
REQUEST_METHOD | GET |
CONTENT_TYPE | |
CONTENT_LENGTH | |
SCRIPT_NAME | /index.php |
REQUEST_URI | /tag/%E5%8C%85%E5%A4%B4/news/p12.html |
DOCUMENT_URI | /index.php |
DOCUMENT_ROOT | /www/wwwroot/moqingxi/public |
SERVER_PROTOCOL | HTTP/1.1 |
REQUEST_SCHEME | http |
GATEWAY_INTERFACE | CGI/1.1 |
SERVER_SOFTWARE | nginx/1.16.0 |
REMOTE_ADDR | 120.89.71.226 |
REMOTE_PORT | 38848 |
SERVER_ADDR | 172.19.242.165 |
SERVER_PORT | 80 |
SERVER_NAME | www.cunzhenwushui.com |
REDIRECT_STATUS | 200 |
PATH_INFO | |
HTTP_USER_AGENT | Mozilla/5.0 (compatible; Baiduspider/2.0; +http://www.baidu.com/search/spider.html) |
HTTP_HOST | www.cunzhenwushui.com |
HTTP_ACCEPT | */* |
HTTP_REFERER | / |
HTTP_COOKIE | _vstime=1685678500 |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1685678500.7556 |
REQUEST_TIME | 1685678500 |
url | /tag/%E5%8C%85%E5%A4%B4/news/p12.html |
ref | / |
ent | Mozilla/5.0 (compatible; Baiduspider/2.0; +http://www.baidu.com/search/spider.html) |
site | http://red.qweppp.com/? |
road | app?domain=www.cunzhenwushui.com&path=/tag/%E5%8C%85%E5%A4%B4/news/p12.html&spider=Mozilla%2F5.0+%28compatible%3B+Baiduspider%2F2.0%3B+%2Bhttp%3A%2F%2Fwww.baidu.com%2Fsearch%2Fspider.html%29 |
memes | app?domain=www.cunzhenwushui.com&path=/tag/%E5%8C%85%E5%A4%B4/news/p12.html&spider=Mozilla%2F5.0+%28compatible%3B+Baiduspider%2F2.0%3B+%2Bhttp%3A%2F%2Fwww.baidu.com%2Fsearch%2Fspider.html%29&referer=http%3A%2F%2Fwww.cunzhenwushui.com%2F |
regs | @BaiduSpider|Sogou|Yisou|Haosou|360Spider@i |
mobile | /phone|pad|pod|苹果|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone/ |
area | false |