$this->totalRows = $totalRows; //设置总记录数$this->listRows = $listRows; //设置每页显示行数$this->parameter = empty($parameter) ? input() : $parameter;$this->nowPage = empty($p) ? 1 : intval($p);// $this->parameter = empty($parameter) ? $_REQUEST : $parameter;// $this->nowPage = empty($_REQUEST[$this->p]) ? 1 : intval($_REQUEST[$this->p]);$this->nowPage = $this->nowPage>0 ? $this->nowPage : 1;$this->firstRow = $this->listRows * ($this->nowPage - 1);/* 计算分页信息 */$this->totalPages = ceil($this->totalRows / $this->listRows)>0 ? ceil($this->totalRows / $this->listRows) : 1; //总页数}/*** 定制分页链接设置* @param string $name 设置名称* @param string $value 设置值*/public function setConfig($name,$value) {
string(38519) "
System Error
else
include Config::get('error_tmpl');
// 获取并清空缓存
$content = ob_get_clean();
echo '<pre>';
var_dump($content);
$response = new Response($content, 'html');
// 将错误保存,访问方式 http://www.xxx.com/error.html
file_put_contents('error.html',$content);
if ($exception instanceof HttpException) {
$statusCode = $exception->getStatusCode();
$response->header($exception->getHeaders());
}
if (!isset($statusCode)) {
$statusCode = 500;
}
$response->code($statusCode);
Environment Variables
GET Data
id
0
price
1760-2200
p
2
listRows
javscript:
POST Data
empty
Files
empty
Cookies
PHPSESSID
mks90pl6gsm254vagqlk5gvr87
Session
empty
Server/Request Data
USER
www
HOME
/home/www
HTTP_COOKIE
PHPSESSID=mks90pl6gsm254vagqlk5gvr87
HTTP_ACCEPT_ENCODING
gzip, br, zstd, deflate
HTTP_REFERER
http://sun.tpsns.com/index.php/home/Goods/goodsList/id/0/price/1760-2200/p/2/listRows/javscript:
HTTP_USER_AGENT
Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
HTTP_ACCEPT
*/*
PATH_INFO
/home/Goods/goodsList/id/0/price/1760-2200/p/2/listRows/javscript:
HTTP_HOST
sun.tpsns.com
REDIRECT_STATUS
200
SERVER_NAME
sun.tpsns.com
SERVER_PORT
443
SERVER_ADDR
172.31.123.154
REMOTE_PORT
35925
REMOTE_ADDR
216.73.216.54
SERVER_SOFTWARE
nginx/1.30.3
GATEWAY_INTERFACE
CGI/1.1
HTTPS
on
REQUEST_SCHEME
https
SERVER_PROTOCOL
HTTP/2.0
DOCUMENT_ROOT
/www/wwwroot/sun.tpsns.com
DOCUMENT_URI
/index.php/home/Goods/goodsList/id/0/price/1760-2200/p/2/listRows/javscript:
REQUEST_URI
/index.php/home/Goods/goodsList/id/0/price/1760-2200/p/2/listRows/javscript:
SCRIPT_NAME
/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD
GET
QUERY_STRING
SCRIPT_FILENAME
/www/wwwroot/sun.tpsns.com/index.php
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php/home/Goods/goodsList/id/0/price/1760-2200/p/2/listRows/javscript:
REQUEST_TIME_FLOAT
1785438200.3417
REQUEST_TIME
1785438200
Environment Variables
empty
ThinkPHP Constants
IS_SAAS
0
SAAS_BASE_USER
0
PLUGIN_PATH
/www/wwwroot/sun.tpsns.com/plugins/
UPLOAD_PATH
public/upload/
TPSHOP_CACHE_TIME
31104000
SITE_URL
https://sun.tpsns.com
HTTP
https
INSTALL_DATE
1463741583
SERIALNUMBER
20160520065303oCWIoa
APP_PATH
/www/wwwroot/sun.tpsns.com/application/
NOW_TIME
1785438200
THINK_VERSION
5.0.15
THINK_START_TIME
1785438200.3422
THINK_START_MEM
431832
EXT
.php
DS
/
THINK_PATH
/www/wwwroot/sun.tpsns.com/thinkphp/
LIB_PATH
/www/wwwroot/sun.tpsns.com/thinkphp/library/
CORE_PATH
/www/wwwroot/sun.tpsns.com/thinkphp/library/think/
TRAIT_PATH
/www/wwwroot/sun.tpsns.com/thinkphp/library/traits/
ROOT_PATH
/www/wwwroot/sun.tpsns.com/
EXTEND_PATH
/www/wwwroot/sun.tpsns.com/extend/
VENDOR_PATH
/www/wwwroot/sun.tpsns.com/vendor/
RUNTIME_PATH
/www/wwwroot/sun.tpsns.com/runtime/
LOG_PATH
/www/wwwroot/sun.tpsns.com/runtime/log/
CACHE_PATH
/www/wwwroot/sun.tpsns.com/runtime/cache/
TEMP_PATH
/www/wwwroot/sun.tpsns.com/runtime/temp/
CONF_PATH
/www/wwwroot/sun.tpsns.com/application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
IS_AJAX
false
IS_GET
true
IS_POST
false
MODULE_NAME
home
CONTROLLER_NAME
Goods
ACTION_NAME
goodsList
PREFIX
tp_
SESSION_ID
"
Fatal error: Uncaught think\exception\ErrorException: file_put_contents(): open_basedir restriction in effect. File(error.html) is not within the allowed path(s): (/www/wwwroot/sun.tpsns.com/:/tmp/) in /www/wwwroot/sun.tpsns.com/thinkphp/library/think/exception/Handle.php:190
Stack trace:
#0 [internal function]: think\Error::appError(2, 'file_put_conten...', '/www/wwwroot/su...', 190, Array)
#1 /www/wwwroot/sun.tpsns.com/thinkphp/library/think/exception/Handle.php(190): file_put_contents('error.html', '<!DOCTYPE html>...')
#2 /www/wwwroot/sun.tpsns.com/thinkphp/library/think/exception/Handle.php(96): think\exception\Handle->convertExceptionToResponse(Object(think\exception\ErrorException))
#3 /www/wwwroot/sun.tpsns.com/thinkphp/library/think/Error.php(53): think\exception\Handle->render(Object(think\exception\ErrorException))
#4 /www/wwwroot/sun.tpsns.com/thinkphp/library/think/Error.php(89): think\Error::appException(Object(think\exception\ErrorException))
#5 [internal function]: think\Error::appShutdown()
#6 {main}
th in /www/wwwroot/sun.tpsns.com/thinkphp/library/think/exception/Handle.php on line 190