EnvHelper
class EnvHelper
环境获取
Methods
static string
ip()
返回 IP 信息
static string
self()
当前执行的脚本文件的名称
static string
referer()
来源地址
static string
domain()
返回服务器的名称
static string
scheme()
No description
static string
port()
No description
static string
uri()
No description
static string
host()
获取主机
static string
nqUrl()
No description
static int
time()
请求的unix 时间戳
static string
static bool
isProxy()
是否是代理
static bool
isWindows()
是否win 服务器
static string
os()
获取客户端OS
static mixed|string
maxUploadSize(bool $format = true)
最大上传的文件大小
static bool
isInternalIp(string $ip)
IP 是否是内网地址
Details
at line 18
static string
ip()
返回 IP 信息
at line 48
static string
self()
当前执行的脚本文件的名称
at line 59
static string
referer()
来源地址
at line 68
static string
domain()
返回服务器的名称
at line 76
static string
scheme()
No description
at line 88
static string
port()
No description
at line 100
static string
uri()
No description
at line 125
static string
host()
获取主机
at line 133
static string
nqUrl()
No description
at line 142
static int
time()
请求的unix 时间戳
at line 153
static string
agent()
deprecated
deprecated
浏览器头部
at line 162
static bool
isProxy()
是否是代理
at line 176
static bool
isWindows()
是否win 服务器
at line 189
static string
os()
获取客户端OS
at line 216
static mixed|string
maxUploadSize(bool $format = true)
最大上传的文件大小
at line 234
static bool
isInternalIp(string $ip)
IP 是否是内网地址