金沙8888js(中国)有限公司-Official website

[8] ErrorException in common.php line 171

未定义数组索引: HTTP_USER_AGENT

  1. $objWriter->save('php://output'); // 文件通过浏览器下载
  2. exit();
  3. }
  4. function is_mobile()
  5. {
  6. $agent = strtolower($_SERVER['HTTP_USER_AGENT']);
  7. $is_pc = (strpos($agent, 'windows nt')) ? true : false;
  8. $is_mac = (strpos($agent, 'mac os')) ? true : false;
  9. $is_iphone = (strpos($agent, 'iphone')) ? true : false;
  10. $is_android = (strpos($agent, 'android')) ? true : false;
  11. $is_ipad = (strpos($agent, 'ipad')) ? true : false;
  12. if($is_iphone){

Call Stack

  1. in common.php line 171
  2. at Error::appError(8, 'Undefined index: HTT...', '/www/wwwroot/2024.nh...', 171, []) in common.php line 171
  3. at is_mobile() in Index.php line 16
  4. at Index->_initialize() in Controller.php line 59
  5. at Controller->__construct(object(Request))
  6. at ReflectionClass->newInstanceArgs([object(Request)]) in App.php line 359
  7. at App::invokeClass('app\index\controller...') in Loader.php line 479
  8. at Loader::controller('index', 'controller', false, 'Error') in App.php line 580
  9. at App::module(['', null, null], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], true) in App.php line 456
  10. at App::exec(['type' => 'module', 'module' => ['', null, null]], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 139
  11. at App::run() in start.php line 19
  12. at require('/www/wwwroot/2024.nh...') in index.php line 17

Environment Variables

GET Data
empty
POST Data
empty
Files
empty
Cookies
empty
Session
empty

Server/Request Data

USER
www
HOME
/home/www
HTTP_ALI_CDN_ADAPTIVE_PORTS
80,443
HTTP_ACCEPT_ENCODING
gzip
HTTP_ACCEPT
*/*
HTTP_ALI_CDN_REAL_IP
104.140.79.34
HTTP_X_CLIENT_SCHEME
http
HTTP_X_FORWARDED_FOR
104.140.79.34
HTTP_ALI_SWIFT_STAT_HOST
www.nhet.com.cn
HTTP_ALI_SWIFT_LOG_HOST
www.nhet.com.cn
HTTP_EAGLEEYE_TRACEID
b4a3921e17267933798784940e
HTTP_VIA
cn7174.l1, kunlun7.cn7174, l2cn3135.l2, cache4.l2cn3135
HTTP_HOST
www.nhet.com.cn
PATH_INFO
REDIRECT_STATUS
200
SERVER_NAME
2024.nhet.com
SERVER_PORT
80
SERVER_ADDR
172.19.15.123
REMOTE_PORT
21630
REMOTE_ADDR
120.220.212.11
SERVER_SOFTWARE
nginx/1.20.2
GATEWAY_INTERFACE
CGI/1.1
REQUEST_SCHEME
http
SERVER_PROTOCOL
HTTP/1.1
DOCUMENT_ROOT
/www/wwwroot/2024.nhet.com
DOCUMENT_URI
/index.php
REQUEST_URI
/
SCRIPT_NAME
/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD
GET
QUERY_STRING
SCRIPT_FILENAME
/www/wwwroot/2024.nhet.com/index.php
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1726793380.1498
REQUEST_TIME
1726793380
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/www/wwwroot/2024.nhet.com/application/
THINK_VERSION
5.0.24
THINK_START_TIME
1726793380.1504
THINK_START_MEM
381656
EXT
.php
DS
/
THINK_PATH
/www/wwwroot/2024.nhet.com/thinkphp/
LIB_PATH
/www/wwwroot/2024.nhet.com/thinkphp/library/
CORE_PATH
/www/wwwroot/2024.nhet.com/thinkphp/library/think/
TRAIT_PATH
/www/wwwroot/2024.nhet.com/thinkphp/library/traits/
ROOT_PATH
/www/wwwroot/2024.nhet.com/
EXTEND_PATH
/www/wwwroot/2024.nhet.com/extend/
VENDOR_PATH
/www/wwwroot/2024.nhet.com/vendor/
RUNTIME_PATH
/www/wwwroot/2024.nhet.com/runtime/
LOG_PATH
/www/wwwroot/2024.nhet.com/runtime/log/
CACHE_PATH
/www/wwwroot/2024.nhet.com/runtime/cache/
TEMP_PATH
/www/wwwroot/2024.nhet.com/runtime/temp/
CONF_PATH
/www/wwwroot/2024.nhet.com/application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false

404 Not Found

返回
XML 地图