// echo('<br>=====start $controller=====<br>');
// print_r( $controller);
// echo('<br>======end======<br>');
if(is_numeric($controller)){//这里 如果为数字就会报错 重新设置一下
$controller = 'aaa' . $controller;
}
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 | /home/www |
HTTP_HOST | www.cnmgj.com |
HTTP_USER_AGENT | claudebot |
HTTP_ACCEPT | */* |
PATH_INFO | |
REDIRECT_STATUS | 200 |
SERVER_NAME | 888.com |
SERVER_PORT | 80 |
SERVER_ADDR | 38.239.106.66 |
REMOTE_PORT | 52026 |
REMOTE_ADDR | 35.153.170.189 |
SERVER_SOFTWARE | nginx/1.18.0 |
GATEWAY_INTERFACE | CGI/1.1 |
REQUEST_SCHEME | http |
SERVER_PROTOCOL | HTTP/1.1 |
DOCUMENT_ROOT | /www/wwwroot/1.jnd28.bet/public |
DOCUMENT_URI | /index.php |
REQUEST_URI | /2475y/88018642.xml |
SCRIPT_NAME | /index.php |
CONTENT_LENGTH | |
CONTENT_TYPE | |
REQUEST_METHOD | GET |
QUERY_STRING | s=/2475y/88018642.xml |
SCRIPT_FILENAME | /www/wwwroot/1.jnd28.bet/public/index.php |
FCGI_ROLE | RESPONDER |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1711722620.5268 |
REQUEST_TIME | 1711722620 |
LOTUS_ROOT | /www/wwwroot/1.jnd28.bet/public/../ |
APP_PATH | /www/wwwroot/1.jnd28.bet/public/../application/ |
DS | / |
LOTUS_VERSION | 5.0 |