3559新濠(澳门)新天地-www.3559.cσm|官网入口

[8] ErrorException in common.php line 12

Undefined index: HTTP_USER_AGENT

  1. // 公共助手函数
  2. use Symfony\Component\VarExporter\VarExporter;
  3. function p($data){
  4. echo "
    ";
    
  5. print_r($data);
  6. exit;
  7. }
  8. function is_mobile_request(){
  9. $agent = strtolower($_SERVER['HTTP_USER_AGENT']);
  10. //分析数据
  11. $is_pc = (strpos($agent, 'windows nt')) ? true : false;
  12. $is_iphone = (strpos($agent, 'iphone')) ? true : false;
  13. $is_ipad = (strpos($agent, 'ipad')) ? true : false;

Call Stack

  1. in common.php line 12
  2. at Error::appError(8, 'Undefined index: HTT...', '/data/wwwroot/tongch...', 12, []) in common.php line 12
  3. at is_mobile_request() in a11c7b3cfbc20543b93910230efcb15f.php line 44
  4. at include('/data/wwwroot/tongch...') in File.php line 53
  5. at File->read('/data/wwwroot/tongch...', ['config' => ['id' => 1, 'site_name' => '...', 'keywords' => '...', ...], 'user' => null, 'site' => ['name' => '...', 'beian' => '', 'cdnurl' => '', ...], ...]) in Template.php line 188
  6. at Template->fetch('/data/wwwroot/tongch...', ['config' => ['id' => 1, 'site_name' => '...', 'keywords' => '...', ...], 'user' => null, 'site' => ['name' => '...', 'beian' => '', 'cdnurl' => '', ...], ...], []) in Think.php line 86
  7. at Think->fetch('/data/wwwroot/tongch...', ['config' => ['id' => 1, 'site_name' => '...', 'keywords' => '...', ...], 'user' => null, 'site' => ['name' => '...', 'beian' => '', 'cdnurl' => '', ...], ...], []) in View.php line 163
  8. at View->fetch('index') in Index.php line 93
  9. at Index->index()
  10. at call_user_func_array([object(Index), 'index'], []) in Route.php line 76
  11. at Route->execute('wwh', 'index', 'index')
  12. at ReflectionMethod->invokeArgs(object(Route), ['wwh', 'index', 'index']) in App.php line 343
  13. at App::invokeMethod(['\think\addons\Route', 'execute'], ['addon' => 'wwh', 'controller' => 'index', 'action' => 'index']) in App.php line 470
  14. at App::exec(['type' => 'method', 'method' => ['\think\addons\Route', 'execute'], 'var' => ['addon' => 'wwh', 'controller' => 'index', 'action' => 'index']], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 139
  15. at App::run() in start.php line 19
  16. at require('/data/wwwroot/tongch...') in index.php line 33

Environment Variables

GET Data
empty
POST Data
empty
Files
empty

Cookies

think_var
usr/local/lib/php/pearcmd
PHPSESSID
hmghs9f7egvn6k8fotqakik09i
asd
1
Session
empty

Server/Request Data

TEMP
/tmp
TMPDIR
/tmp
TMP
/tmp
PATH
/usr/local/bin:/usr/bin:/bin
USER
www
HOME
/home/www
HTTP_COOKIE
think_var=usr%2Flocal%2Flib%2Fphp%2Fpearcmd; PHPSESSID=hmghs9f7egvn6k8fotqakik09i
HTTP_ACCEPT_ENCODING
gzip
HTTP_ACCEPT
*/*
HTTP_HOST
www.tongcc.com
PATH_INFO
REDIRECT_STATUS
200
SERVER_NAME
www.tongcc.com
SERVER_PORT
443
SERVER_ADDR
172.16.105.66
REMOTE_PORT
56184
REMOTE_ADDR
45.42.85.26
SERVER_SOFTWARE
nginx/1.16.1
GATEWAY_INTERFACE
CGI/1.1
HTTPS
on
REQUEST_SCHEME
https
SERVER_PROTOCOL
HTTP/1.1
DOCUMENT_ROOT
/data/wwwroot/tongcheng/guanwang/public
DOCUMENT_URI
/index.php
REQUEST_URI
/
SCRIPT_NAME
/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD
GET
QUERY_STRING
SCRIPT_FILENAME
/data/wwwroot/tongcheng/guanwang/public/index.php
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1716332043.5904
REQUEST_TIME
1716332043
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/data/wwwroot/tongcheng/guanwang/public/../application/
THINK_VERSION
5.0.24
THINK_START_TIME
1716332043.5905
THINK_START_MEM
396616
EXT
.php
DS
/
THINK_PATH
/data/wwwroot/tongcheng/guanwang/thinkphp/
LIB_PATH
/data/wwwroot/tongcheng/guanwang/thinkphp/library/
CORE_PATH
/data/wwwroot/tongcheng/guanwang/thinkphp/library/think/
TRAIT_PATH
/data/wwwroot/tongcheng/guanwang/thinkphp/library/traits/
ROOT_PATH
/data/wwwroot/tongcheng/guanwang/
EXTEND_PATH
/data/wwwroot/tongcheng/guanwang/extend/
VENDOR_PATH
/data/wwwroot/tongcheng/guanwang/vendor/
RUNTIME_PATH
/data/wwwroot/tongcheng/guanwang/runtime/
LOG_PATH
/data/wwwroot/tongcheng/guanwang/runtime/log/
CACHE_PATH
/data/wwwroot/tongcheng/guanwang/runtime/cache/
TEMP_PATH
/data/wwwroot/tongcheng/guanwang/runtime/temp/
CONF_PATH
/data/wwwroot/tongcheng/guanwang/public/../application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
FILTER_VALIDATE_BOOL
258
ADDON_PATH
/data/wwwroot/tongcheng/guanwang/addons/
XS_APP_ROOT
/data/wwwroot/tongcheng/guanwang/addons/xunsearch/data
XML 地图