澳门新葡京总网

[8] ErrorException in Home.php line 210

未定义数组索引: HTTP_USER_AGENT

  1. return $list;
  2. }
  3. ///判断是否是手机打开网页
  4. function is_mobile_request()
  5. {
  6. $_SERVER['ALL_HTTP'] = isset($_SERVER['ALL_HTTP']) ? $_SERVER['ALL_HTTP'] : '';
  7. $mobile_browser = '0';
  8. if(preg_match('/(up.browser|up.link|mmp|symbian|smartphone|midp|wap|phone|iphone|ipad|ipod|android|xoom)/i', strtolower($_SERVER['HTTP_USER_AGENT'])))
  9. $mobile_browser++;
  10. if((isset($_SERVER['HTTP_ACCEPT'])) and (strpos(strtolower($_SERVER['HTTP_ACCEPT']),'application/vnd.wap.xhtml+xml') !== false))
  11. $mobile_browser++;
  12. if(isset($_SERVER['HTTP_X_WAP_PROFILE']))
  13. $mobile_browser++;
  14. if(isset($_SERVER['HTTP_PROFILE']))
  15. $mobile_browser++;
  16. $mobile_ua = strtolower(substr($_SERVER['HTTP_USER_AGENT'],0,4));
  17. $mobile_agents = array(

Call Stack

  1. in Home.php line 210
  2. at Error::appError(8, 'Undefined index: HTT...', 'E:\www\pengweicom\ap...', 210, ['mobile_browser' => '0']) in Home.php line 210
  3. at Home->is_mobile_request() in Home.php line 276
  4. at Home->web_set() in Home.php line 24
  5. at Home->__construct() in Index.php line 6
  6. at Index->__construct()
  7. at ReflectionClass->newInstanceArgs([]) in App.php line 359
  8. at App::invokeClass('app\home\controller\...') in Loader.php line 479
  9. at Loader::controller('index', 'controller', false, 'Error') in App.php line 581
  10. at App::module(['', null, null], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], null) in App.php line 457
  11. at App::exec(['type' => 'module', 'module' => ['', null, null]], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 139
  12. at App::run() in start.php line 19
  13. at require('E:\www\pengweicom\th...') in index.php line 18

Environment Variables

GET Data
empty
POST Data
empty
Files
empty
Cookies
empty

Session

xianyu
{ "lang": "zh-cn" }

Server/Request Data

PATH
C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\WindowsPowerShell\v1.0\;
SYSTEMROOT
C:\Windows
COMSPEC
C:\Windows\system32\cmd.exe
PATHEXT
.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
WINDIR
C:\Windows
PHP_FCGI_MAX_REQUESTS
1000
PHPRC
E:/phpStudy/php56n
_FCGI_SHUTDOWN_EVENT_
3112
HTTP_CONNECTION
close
SCRIPT_NAME
/index.php
REQUEST_URI
/
QUERY_STRING
REQUEST_METHOD
GET
SERVER_PROTOCOL
HTTP/1.1
GATEWAY_INTERFACE
CGI/1.1
REMOTE_PORT
46496
SCRIPT_FILENAME
E:/www/pengweicom/public/index.php
SERVER_ADMIN
admin@phpStudy.net
CONTEXT_DOCUMENT_ROOT
E:/www/pengweicom/public
CONTEXT_PREFIX
REQUEST_SCHEME
http
DOCUMENT_ROOT
E:/www/pengweicom/public
REMOTE_ADDR
103.42.176.186
SERVER_PORT
80
SERVER_ADDR
172.24.209.19
SERVER_NAME
www.gd-pengwei.com
SERVER_SOFTWARE
Apache/2.4.10 (Win32) OpenSSL/1.0.1i mod_fcgid/2.3.9
SERVER_SIGNATURE
SystemRoot
C:\Windows
HTTP_ACCEPT
*/*
HTTP_HOST
www.gd-pengwei.com
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1553477266.4223
REQUEST_TIME
1553477266
ALL_HTTP
Environment Variables
empty

ThinkPHP Constants

APP_PATH
E:\www\pengweicom\public/../application/
CONF_PATH
E:\www\pengweicom\public/../config/
THINK_VERSION
5.0.20
THINK_START_TIME
1553477266.4379
THINK_START_MEM
141080
EXT
.php
DS
\
THINK_PATH
E:\www\pengweicom\thinkphp\
LIB_PATH
E:\www\pengweicom\thinkphp\library\
CORE_PATH
E:\www\pengweicom\thinkphp\library\think\
TRAIT_PATH
E:\www\pengweicom\thinkphp\library\traits\
ROOT_PATH
E:\www\pengweicom\
EXTEND_PATH
E:\www\pengweicom\extend\
VENDOR_PATH
E:\www\pengweicom\vendor\
RUNTIME_PATH
E:\www\pengweicom\runtime\
LOG_PATH
E:\www\pengweicom\runtime\log\
CACHE_PATH
E:\www\pengweicom\runtime\cache\
TEMP_PATH
E:\www\pengweicom\runtime\temp\
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
true