* @param string $msg 异常消息
* @param integer $code 异常代码 默认为0
* @param string $exception 异常类
*
* @throws Exception
*/
function exception($msg, $code = 0, $exception = '')
{
$e = $exception ?: '\think\Exception';
throw new $e($msg, $code);
}
}
if (!function_exists('halt')) {
/**
* 调试变量并且中断输出
* @param mixed $var 调试变量或者信息
*/
function halt($var)
USER | www |
HOME | /home/www |
FCGI_ROLE | RESPONDER |
SCRIPT_FILENAME | /www/wwwroot/shengktcs.zhulu76.com/index.php |
QUERY_STRING | s=/index/Lists/show/catid/2/id/48.html |
REQUEST_METHOD | GET |
CONTENT_TYPE | |
CONTENT_LENGTH | |
SCRIPT_NAME | /index.php |
REQUEST_URI | /index/Lists/show/catid/2/id/48.html |
DOCUMENT_URI | /index.php |
DOCUMENT_ROOT | /www/wwwroot/shengktcs.zhulu76.com |
SERVER_PROTOCOL | HTTP/1.1 |
REQUEST_SCHEME | http |
GATEWAY_INTERFACE | CGI/1.1 |
SERVER_SOFTWARE | nginx/1.20.2 |
REMOTE_ADDR | 3.235.180.245 |
REMOTE_PORT | 34180 |
SERVER_ADDR | 172.19.27.174 |
SERVER_PORT | 80 |
SERVER_NAME | www.thermacut-china.com |
REDIRECT_STATUS | 200 |
PATH_INFO | |
HTTP_ACCEPT | */* |
HTTP_USER_AGENT | claudebot |
HTTP_HOST | thermacut-china.com |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1711725355.143 |
REQUEST_TIME | 1711725355 |
ROOT_PATH | /www/wwwroot/shengktcs.zhulu76.com |
APP_PATH | /www/wwwroot/shengktcs.zhulu76.com/application |
WEB_URL | http://thermacut-china.com/ |
APP_HOST | |
APP_ROOT_DIR | |
DOCUMENTY_ROOT_DIR | /www/wwwroot/shengktcs.zhulu76.com |