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
agent() deprecated

浏览器头部

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 信息

Return Value

string 返回IP

at line 48
static string self()

当前执行的脚本文件的名称

Return Value

string 当前文件的名称

at line 59
static string referer()

来源地址

Return Value

string 来源地址

at line 68
static string domain()

返回服务器的名称

Return Value

string 返回服务器名称

at line 76
static string scheme()

No description

Return Value

string 协议名称

at line 88
static string port()

No description

Return Value

string 返回端口号

at line 100
static string uri()

No description

Return Value

string 完整的地址

at line 125
static string host()

获取主机

Return Value

string

at line 133
static string nqUrl()

No description

Return Value

string

没有查询的完整的URL地址, 基于当前页面

at line 142
static int time()

请求的unix 时间戳

Return Value

int

at line 153
static string agent() deprecated

deprecated 4.1

浏览器头部

Return Value

string

See also

\Request::userAgent()

at line 162
static bool isProxy()

是否是代理

Return Value

bool

at line 176
static bool isWindows()

是否win 服务器

Return Value

bool

at line 189
static string os()

获取客户端OS

Return Value

string

at line 216
static mixed|string maxUploadSize(bool $format = true)

最大上传的文件大小

Parameters

bool $format 是否格式化

Return Value

mixed|string

at line 234
static bool isInternalIp(string $ip)

IP 是否是内网地址

Parameters

string $ip

Return Value

bool