8040www威尼斯 -首页|欢迎您

[8] ErrorException in Index.php line 286

未定义数组索引: p

  1. ]);
  2. $this->view->engine->layout(false); //打开layout模板
  3. $arr=empty($_GET)?['p'=>'']:$_GET;
  4. switch($arr['p']){
  5. case 'index':
  6. $list=db('news')->select();
  7. $testStr = '呵呵呵';
  8. $this->assign(['list'=>$list, 'testStr' => $testStr]);
  9. return $view->fetch('index');
  10. break;
  11. case 'about':
  12. $lindao=db('banner')->where('class','lindao')->paginate(9);
  13. $banner=db('banner')->where('class','about')->select();

Call Stack

  1. in Index.php line 286
  2. at Error::appError(8, 'Undefined index: p', 'D:\wwwroot\dazhouzhu...', 286, ['khdcookie' => null, 'IP' => '45.38.224.98', 'iflogin' => [], ...]) in Index.php line 286
  3. at Index->index()
  4. at ReflectionMethod->invokeArgs(object(Index), []) in App.php line 343
  5. at App::invokeMethod([object(Index), 'index'], []) in App.php line 611
  6. at App::module(['', null, null], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], true) in App.php line 456
  7. at App::exec(['type' => 'module', 'module' => ['', null, null]], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 139
  8. at App::run() in start.php line 19
  9. at require('D:\wwwroot\dazhouzhu...') in index.php line 11

Environment Variables

GET Data

page
3
POST Data
empty
Files
empty
Cookies
empty
Session
empty

Server/Request Data

_FCGI_X_PIPE_
\\.\pipe\IISFCGI-9f6e8e56-6d80-4e9b-a327-60c0752f942f
PHPRC
D:\SOFT_PHP_PACKAGE\php7.2
PHP_FCGI_MAX_REQUESTS
10000
ALLUSERSPROFILE
C:\ProgramData
APPDATA
C:\Windows\system32\config\systemprofile\AppData\Roaming
APP_POOL_CONFIG
C:\inetpub\temp\apppools\dazhouzhuma\dazhouzhuma.config
APP_POOL_ID
dazhouzhuma
CommonProgramFiles
C:\Program Files (x86)\Common Files
CommonProgramFiles(x86)
C:\Program Files (x86)\Common Files
CommonProgramW6432
C:\Program Files\Common Files
COMPUTERNAME
EBS-23788
ComSpec
C:\Windows\system32\cmd.exe
FP_NO_HOST_CHECK
NO
LOCALAPPDATA
C:\Windows\system32\config\systemprofile\AppData\Local
NUMBER_OF_PROCESSORS
4
OS
Windows_NT
Path
D:\SOFT_PHP_PACKAGE\php;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;d:\SOFT_PHP_PACKAGE\mysql\bin;C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET Web Pages\v1.0\;D:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\;D:\Program Files\Microsoft SQL Server\100\Tools\Binn\;D:\Program Files\Microsoft SQL Server\100\DTS\Binn\;D:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE\;C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE\PrivateAssemblies\;D:\Program Files (x86)\Microsoft SQL Server\100\DTS\Binn\;C:\Program Files\VisualSVN Server\bin;C:\Python27;C:\Program Files\nodejs\;
PATHEXT
.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
PROCESSOR_ARCHITECTURE
x86
PROCESSOR_ARCHITEW6432
AMD64
PROCESSOR_IDENTIFIER
Intel64 Family 6 Model 85 Stepping 7, GenuineIntel
PROCESSOR_LEVEL
6
PROCESSOR_REVISION
5507
ProgramData
C:\ProgramData
ProgramFiles
C:\Program Files (x86)
ProgramFiles(x86)
C:\Program Files (x86)
ProgramW6432
C:\Program Files
PSModulePath
C:\Windows\system32\WindowsPowerShell\v1.0\Modules\;C:\Program Files\VisualSVN Server\PowerShellModules
PUBLIC
C:\Users\Public
Python27
C:\Python27
SystemDrive
C:
SystemRoot
C:\Windows
TEMP
C:\Windows\TEMP
TMP
C:\Windows\TEMP
USERDOMAIN
WORKGROUP
USERNAME
EBS-23788$
USERPROFILE
C:\Windows\system32\config\systemprofile
VISUALSVN_SERVER
C:\Program Files\VisualSVN Server\
windir
C:\Windows
windows_tracing_flags
3
windows_tracing_logfile
C:\BVTBin\Tests\installpackage\csilogfile.log
ORIG_PATH_INFO
/index.php
URL
/index.php
SERVER_SOFTWARE
Microsoft-IIS/7.5
SERVER_PROTOCOL
HTTP/1.1
SERVER_PORT_SECURE
0
SERVER_PORT
80
SERVER_NAME
www.dazhouzhuma.com
SCRIPT_NAME
/index.php
SCRIPT_FILENAME
D:\wwwroot\dazhouzhuma\wwwroot\public\index.php
REQUEST_URI
/index.php?page=3
REQUEST_METHOD
GET
REMOTE_USER
REMOTE_PORT
53270
REMOTE_HOST
45.38.224.98
REMOTE_ADDR
45.38.224.98
QUERY_STRING
page=3
PATH_TRANSLATED
D:\wwwroot\dazhouzhuma\wwwroot\public\index.php
LOGON_USER
LOCAL_ADDR
211.149.187.209
INSTANCE_META_PATH
/LM/W3SVC/10070
INSTANCE_NAME
DAZHOUZHUMA
INSTANCE_ID
10070
HTTPS_SERVER_SUBJECT
HTTPS_SERVER_ISSUER
HTTPS_SECRETKEYSIZE
HTTPS_KEYSIZE
HTTPS
off
GATEWAY_INTERFACE
CGI/1.1
DOCUMENT_ROOT
D:\wwwroot\dazhouzhuma\wwwroot\public
CONTENT_TYPE
CONTENT_LENGTH
0
CERT_SUBJECT
CERT_SERIALNUMBER
CERT_ISSUER
CERT_FLAGS
CERT_COOKIE
AUTH_USER
AUTH_PASSWORD
AUTH_TYPE
APPL_PHYSICAL_PATH
D:\wwwroot\dazhouzhuma\wwwroot\public\
APPL_MD_PATH
/LM/W3SVC/10070/ROOT
IIS_UrlRewriteModule
7.1.0871.0
HTTP_USER_AGENT
Mozilla/5.0 (compatible; BLEXBot/1.0; +http://webmeup-crawler.com/)
HTTP_HOST
www.dazhouzhuma.com
HTTP_ACCEPT_ENCODING
gzip
HTTP_ACCEPT
*/*
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1669207149.2002
REQUEST_TIME
1669207149
PATH_INFO
Environment Variables
empty

ThinkPHP Constants

APP_PATH
D:\wwwroot\dazhouzhuma\wwwroot\public/../application/
APP_ROOT
D:\wwwroot\dazhouzhuma\wwwroot\public
THINK_VERSION
5.0.24
THINK_START_TIME
1669207149.2012
THINK_START_MEM
389112
EXT
.php
DS
\
THINK_PATH
D:\wwwroot\dazhouzhuma\wwwroot\thinkphp\
LIB_PATH
D:\wwwroot\dazhouzhuma\wwwroot\thinkphp\library\
CORE_PATH
D:\wwwroot\dazhouzhuma\wwwroot\thinkphp\library\think\
TRAIT_PATH
D:\wwwroot\dazhouzhuma\wwwroot\thinkphp\library\traits\
ROOT_PATH
D:\wwwroot\dazhouzhuma\wwwroot\
EXTEND_PATH
D:\wwwroot\dazhouzhuma\wwwroot\extend\
VENDOR_PATH
D:\wwwroot\dazhouzhuma\wwwroot\vendor\
RUNTIME_PATH
D:\wwwroot\dazhouzhuma\wwwroot\runtime\
LOG_PATH
D:\wwwroot\dazhouzhuma\wwwroot\runtime\log\
CACHE_PATH
D:\wwwroot\dazhouzhuma\wwwroot\runtime\cache\
TEMP_PATH
D:\wwwroot\dazhouzhuma\wwwroot\runtime\temp\
CONF_PATH
D:\wwwroot\dazhouzhuma\wwwroot\public/../application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
true
Baidu
sogou