$_SERVER

$HTTP_SERVER_VARS [锟斤拷删锟斤拷]

$_SERVER -- $HTTP_SERVER_VARS [锟斤拷删锟斤拷]锟斤拷锟斤拷锟斤拷锟斤拷执锟叫伙拷锟斤拷锟斤拷息

说锟斤拷

$_SERVER 锟斤拷一锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷头锟斤拷息(header)锟斤拷路锟斤拷(path)锟斤拷锟皆硷拷锟脚憋拷位锟斤拷(script locations)锟饺碉拷锟斤拷息锟斤拷锟斤拷锟介。锟斤拷锟斤拷锟斤拷锟斤拷械锟斤拷锟侥匡拷锟� Web 锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟杰憋拷证每锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟结供全锟斤拷锟斤拷目锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟杰伙拷锟斤拷锟揭恍╋拷锟斤拷锟斤拷锟斤拷峁┮恍┟伙拷锟斤拷锟斤拷锟斤拷锟斤拷芯俪锟斤拷锟斤拷锟斤拷锟侥匡拷锟斤拷锟揭诧拷锟斤拷锟轿讹拷糯锟斤拷锟斤拷拇锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷» CGI 1.1 锟芥范锟斤拷说锟斤拷锟斤拷锟斤拷锟斤拷应锟斤拷锟斤拷细锟叫撅拷一锟铰★拷

Note: PHP 5.4.0 之前锟斤拷$HTTP_SERVER_VARS 锟斤拷锟斤拷锟斤拷锟斤拷同锟斤拷锟斤拷息锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷一锟斤拷锟斤拷全锟街憋拷锟斤拷锟斤拷 (注锟斤拷 $HTTP_SERVER_VARS 锟斤拷 $_SERVER 锟角诧拷同锟侥憋拷锟斤拷锟斤拷PHP锟斤拷锟斤拷锟斤拷锟角的凤拷式锟斤拷同)

目录

锟斤拷 $_SERVER 锟叫o拷锟斤拷也锟斤拷锟杰癸拷锟斤拷也锟斤拷锟杰癸拷锟揭碉拷锟斤拷锟斤拷锟斤拷锟叫┰拷亍锟阶拷猓拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷式锟斤拷锟斤拷 PHP锟斤拷锟斤拷锟斤拷锟叫筹拷锟斤拷元锟截硷拷锟斤拷没锟斤拷锟斤拷效锟斤拷(锟斤拷锟斤拷没锟斤拷锟轿猴拷实锟斤拷锟斤拷锟斤拷锟�)锟斤拷

'PHP_SELF'
锟斤拷前执锟叫脚憋拷锟斤拷锟侥硷拷锟斤拷锟斤拷锟斤拷 document root 锟叫关★拷锟斤拷锟界,锟节碉拷址为 http://example.com/foo/bar.php 锟侥脚憋拷锟斤拷使锟斤拷 $_SERVER['PHP_SELF'] 锟斤拷锟矫碉拷 /foo/bar.php锟斤拷__FILE__ 锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷前(锟斤拷锟斤拷锟斤拷锟�)锟侥硷拷锟斤拷锟斤拷锟斤拷路锟斤拷锟斤拷锟侥硷拷锟斤拷锟斤拷 锟斤拷 PHP 4.3.0 锟芥本锟斤拷始锟斤拷锟斤拷锟� PHP 锟斤拷锟斤拷锟斤拷锟斤拷模式锟斤拷锟叫o拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷疟锟斤拷锟斤拷锟街帮拷陌姹撅拷帽锟斤拷锟斤拷锟斤拷锟斤拷谩锟�
'argv'
锟斤拷锟捷革拷锟矫脚憋拷锟侥诧拷锟斤拷锟斤拷锟斤拷锟介。锟斤拷锟脚憋拷锟斤拷锟斤拷锟斤拷锟叫凤拷式锟斤拷锟斤拷时锟斤拷argv 锟斤拷锟斤拷锟斤拷锟捷革拷锟斤拷锟斤拷 C 锟斤拷锟斤拷锟斤拷式锟斤拷锟斤拷锟斤拷锟叫诧拷锟斤拷锟斤拷锟斤拷通锟斤拷 GET 锟斤拷式锟斤拷锟斤拷时锟斤拷锟矫憋拷锟斤拷锟斤拷锟斤拷query string锟斤拷
'argc'
锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷模式锟铰达拷锟捷革拷锟矫脚憋拷锟侥诧拷锟斤拷锟斤拷锟斤拷目(锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟侥J斤拷锟�)锟斤拷
'GATEWAY_INTERFACE'
锟斤拷锟斤拷锟斤拷使锟矫碉拷 CGI 锟芥范锟侥版本锟斤拷锟斤拷锟界,"CGI/1.1"锟斤拷
'SERVER_ADDR'
锟斤拷前锟斤拷锟叫脚憋拷锟斤拷锟节的凤拷锟斤拷锟斤拷锟斤拷 IP 锟斤拷址锟斤拷
'SERVER_NAME'
锟斤拷前锟斤拷锟叫脚憋拷锟斤拷锟节的凤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷疟锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷校锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷歉锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷玫锟街碉拷锟斤拷锟斤拷锟�

Note: 锟斤拷 Apache 2 锟斤,锟斤拷锟斤拷锟斤拷锟斤拷 UseCanonicalName = On 锟斤拷 ServerName锟斤拷 锟斤拷锟斤拷锟街碉拷锟斤拷煽突锟斤拷锟斤拷峁╋拷锟斤拷锟斤拷锌锟斤拷鼙锟轿憋拷臁� 锟斤拷锟斤拷锟斤拷锟叫帮拷全锟斤拷要锟斤拷幕锟斤拷锟斤拷铮拷锟接︼拷锟斤拷锟斤拷锟斤拷锟街碉拷锟�

'SERVER_SOFTWARE'
锟斤拷锟斤拷锟斤拷锟斤拷识锟街凤拷锟斤拷锟斤拷锟斤拷锟斤拷应锟斤拷锟斤拷时锟斤拷头锟斤拷息锟叫革拷锟斤拷锟斤拷
'SERVER_PROTOCOL'
锟斤拷锟斤拷页锟斤拷时通锟斤拷协锟斤拷锟斤拷锟斤拷坪桶姹撅拷锟斤拷锟斤拷纾�"HTTP/1.0"锟斤拷
'REQUEST_METHOD'
锟斤拷锟斤拷页锟斤拷使锟矫碉拷锟斤拷锟襟方凤拷锟斤拷锟斤拷锟界,"GET", "HEAD"锟斤拷"POST"锟斤拷"PUT"锟斤拷

Note:

锟斤拷锟斤拷锟斤拷蠓椒锟轿� HEAD锟斤拷PHP 锟脚憋拷锟斤拷锟节凤拷锟斤拷 Header 头锟斤拷息之锟斤拷锟斤拷止(锟斤拷锟斤拷味锟斤拷锟节诧拷锟斤拷锟轿猴拷锟斤拷锟斤拷螅锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷)锟斤拷

'REQUEST_TIME'
锟斤拷锟斤拷始时锟斤拷时锟斤拷锟斤拷锟斤拷锟� PHP 5.1.0 锟斤拷锟斤拷谩锟�
'REQUEST_TIME_FLOAT'
锟斤拷锟斤拷始时锟斤拷时锟斤拷锟斤拷锟轿拷爰讹拷锟侥撅拷准锟饺★拷 锟斤拷 PHP 5.4.0 锟斤拷始锟斤拷效锟斤拷
'QUERY_STRING'
query string锟斤拷锟斤拷询锟街凤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷械幕锟斤拷锟酵拷锟斤拷锟斤拷锟斤拷锟揭筹拷锟斤拷锟绞★拷
'DOCUMENT_ROOT'
锟斤拷前锟斤拷锟叫脚憋拷锟斤拷锟节碉拷锟侥碉拷锟斤拷目录锟斤拷锟节凤拷锟斤拷锟斤拷锟斤拷锟斤拷锟侥硷拷锟叫讹拷锟藉。
'HTTP_ACCEPT'
锟斤拷前锟斤拷锟斤拷头锟斤拷 Accept: 锟斤拷锟斤拷锟斤拷荩锟斤拷锟斤拷锟斤拷锟节的伙拷锟斤拷
'HTTP_ACCEPT_CHARSET'
锟斤拷前锟斤拷锟斤拷头锟斤拷 Accept-Charset: 锟斤拷锟斤拷锟斤拷荩锟斤拷锟斤拷锟斤拷锟节的伙拷锟斤拷锟斤拷锟界:"iso-8859-1,*,utf-8"锟斤拷
'HTTP_ACCEPT_ENCODING'
锟斤拷前锟斤拷锟斤拷头锟斤拷 Accept-Encoding: 锟斤拷锟斤拷锟斤拷荩锟斤拷锟斤拷锟斤拷锟节的伙拷锟斤拷锟斤拷锟界:"gzip"锟斤拷
'HTTP_ACCEPT_LANGUAGE'
锟斤拷前锟斤拷锟斤拷头锟斤拷 Accept-Language: 锟斤拷锟斤拷锟斤拷荩锟斤拷锟斤拷锟斤拷锟节的伙拷锟斤拷锟斤拷锟界:"en"锟斤拷
'HTTP_CONNECTION'
锟斤拷前锟斤拷锟斤拷头锟斤拷 Connection: 锟斤拷锟斤拷锟斤拷荩锟斤拷锟斤拷锟斤拷锟节的伙拷锟斤拷锟斤拷锟界:"Keep-Alive"锟斤拷
'HTTP_HOST'
锟斤拷前锟斤拷锟斤拷头锟斤拷 Host: 锟斤拷锟斤拷锟斤拷荩锟斤拷锟斤拷锟斤拷锟节的伙拷锟斤拷
'HTTP_REFERER'
锟斤拷锟斤拷锟矫伙拷锟斤拷锟斤拷锟斤拷前页锟斤拷前一页锟侥碉拷址锟斤拷锟斤拷锟斤拷锟斤拷冢锟斤拷锟斤拷锟� user agent 锟斤拷锟矫撅拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟叫碉拷锟矫伙拷锟斤拷锟斤拷锟斤拷锟斤拷锟矫革拷锟筋,锟叫的伙拷锟结供锟斤拷锟睫革拷 HTTP_REFERER 锟侥癸拷锟杰★拷锟斤拷锟斤拷之锟斤拷锟斤拷值锟斤拷锟斤拷锟斤拷锟脚★拷
'HTTP_USER_AGENT'
锟斤拷前锟斤拷锟斤拷头锟斤拷 User-Agent: 锟斤拷锟斤拷锟斤拷荩锟斤拷锟斤拷锟斤拷锟节的伙拷锟斤拷锟斤拷锟街凤拷锟斤拷锟斤拷锟斤拷锟剿凤拷锟绞革拷页锟斤拷锟斤拷没锟斤拷锟斤拷锟斤拷锟斤拷息锟斤拷一锟斤拷锟斤拷锟酵碉拷锟斤拷锟斤拷锟角o拷Mozilla/4.5 [en] (X11; U; Linux 2.2.9 i586)锟斤拷锟斤拷锟斤拷之锟解,锟斤拷锟斤拷锟酵拷锟� get_browser() 锟斤拷使锟矫革拷值锟斤拷锟接讹拷锟斤拷锟斤拷页锟斤拷锟斤拷锟斤拷员锟斤拷锟接︼拷没锟斤拷锟斤拷锟斤拷锟斤拷锟杰★拷
'HTTPS'
锟斤拷锟斤拷疟锟斤拷锟酵拷锟� HTTPS 协锟介被锟斤拷锟绞o拷锟斤拷锟斤拷为一锟斤拷锟角空碉拷值锟斤拷

Note: 注锟解当使锟斤拷 IIS 锟较碉拷 ISAPI 锟斤拷式时锟斤拷锟斤拷锟斤拷锟斤拷锟酵拷锟� HTTPS 协锟介被锟斤拷锟绞o拷锟斤拷锟街碉拷锟轿� off锟斤拷

'REMOTE_ADDR'
锟斤拷锟斤拷锟角耙筹拷锟斤拷锟矫伙拷锟斤拷 IP 锟斤拷址锟斤拷
'REMOTE_HOST'
锟斤拷锟斤拷锟角耙筹拷锟斤拷锟矫伙拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷DNS 锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷没锟斤拷锟� REMOTE_ADDR锟斤拷

Note: 锟斤拷姆锟斤拷锟斤拷锟斤拷锟斤拷氡伙拷锟斤拷锟斤拷员锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟� Apache 锟叫o拷锟斤拷锟斤拷要锟斤拷 httpd.conf 锟斤拷锟斤拷锟斤拷 HostnameLookups On 锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟轿硷拷 gethostbyaddr()锟斤拷

'REMOTE_PORT'
锟矫伙拷锟斤拷锟斤拷锟斤拷锟斤拷锟接碉拷 Web 锟斤拷锟斤拷锟斤拷锟斤拷使锟矫的端口号★拷
'REMOTE_USER'
锟斤拷锟斤拷证锟斤拷锟矫伙拷
'REDIRECT_REMOTE_USER'
锟斤拷证锟斤拷锟矫伙拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷诓锟斤拷囟锟斤拷锟�
'SCRIPT_FILENAME'

锟斤拷前执锟叫脚憋拷锟侥撅拷锟斤拷路锟斤拷锟斤拷

Note:

锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷薪锟斤拷妫–ommand Line Interface, CLI锟斤拷使锟斤拷锟斤拷锟铰凤拷锟街达拷薪疟锟斤拷锟斤拷锟斤拷锟� file.php 锟斤拷 ../file.php锟斤拷锟斤拷么 $_SERVER['SCRIPT_FILENAME'] 锟斤拷锟斤拷锟斤拷锟矫伙拷指锟斤拷锟斤拷锟斤拷锟铰凤拷锟斤拷锟�

'SERVER_ADMIN'
锟斤拷值指锟斤拷锟斤拷 Apache 锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟侥硷拷锟叫碉拷 SERVER_ADMIN 锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷疟锟斤拷锟斤拷锟斤拷锟揭伙拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷希锟斤拷锟斤拷值锟斤拷锟角革拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷值锟斤拷
'SERVER_PORT'
Web 锟斤拷锟斤拷锟斤拷使锟矫的端口★拷默锟斤拷值为 "80"锟斤拷锟斤拷锟绞癸拷锟� SSL 锟斤拷全锟斤拷锟接o拷锟斤拷锟斤拷锟街滴拷没锟斤拷锟斤拷玫锟� HTTP 锟剿口★拷

Note: 锟斤拷 Apache 2 锟斤,为锟剿伙拷取锟斤拷实锟斤拷锟斤拷丝冢锟斤拷锟斤拷锟斤拷锟斤拷锟� UseCanonicalName = On 锟皆硷拷 UseCanonicalPhysicalPort = On锟斤拷 锟斤拷锟斤拷锟街碉拷锟斤拷鼙锟轿憋拷欤拷锟揭伙拷锟斤拷岱碉拷锟斤拷锟绞碉拷丝锟街碉拷锟� 锟斤拷锟斤拷锟斤拷锟叫帮拷全锟斤拷要锟斤拷幕锟斤拷锟斤拷铮拷锟接︼拷锟斤拷锟斤拷锟斤拷锟街碉拷锟�

'SERVER_SIGNATURE'
锟斤拷锟斤拷锟剿凤拷锟斤拷锟斤拷锟芥本锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟街凤拷锟斤拷锟斤拷
'PATH_TRANSLATED'
锟斤拷前锟脚憋拷锟斤拷锟斤拷锟侥硷拷系统锟斤拷锟斤拷锟侥碉拷锟斤拷目录锟斤拷锟侥伙拷锟斤拷路锟斤拷锟斤拷锟斤拷锟斤拷锟节凤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟解到锟斤拷实路锟斤拷锟斤拷映锟斤拷锟侥斤拷锟斤拷锟�

Note: 锟斤拷 PHP 4.3.2 锟斤拷PATH_TRANSLATED 锟斤拷 Apache 2 SAPI 模式锟铰诧拷锟劫猴拷 Apache 1 一锟斤拷锟斤拷锟斤拷锟斤拷值锟斤拷锟斤拷锟斤拷锟斤拷 Apache 锟斤拷锟斤拷锟缴达拷值锟斤拷PHP 锟斤拷锟皆硷拷锟斤拷锟缴诧拷锟斤拷锟斤拷值锟斤拷锟斤拷 SCRIPT_FILENAME 锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟叫★拷锟斤拷锟斤拷薷锟斤拷锟斤拷锟斤拷锟� CGI 锟芥范锟斤拷PATH_TRANSLATED 锟斤拷锟斤拷 PATH_INFO 锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷虏糯锟斤拷凇锟� Apache 2 锟矫伙拷锟斤拷锟斤拷锟斤拷 httpd.conf 锟斤拷锟斤拷锟斤拷 AcceptPathInfo = On 锟斤拷锟斤拷锟斤拷 PATH_INFO锟斤拷

'SCRIPT_NAME'
锟斤拷锟斤拷锟斤拷前锟脚憋拷锟斤拷路锟斤拷锟斤拷锟斤拷锟斤拷页锟斤拷锟斤拷要指锟斤拷锟皆硷拷时锟角筹拷锟斤拷锟矫★拷__FILE__ 锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷前锟脚憋拷(锟斤拷锟斤拷锟斤拷锟斤拷募锟�)锟斤拷锟斤拷锟斤拷路锟斤拷锟斤拷锟侥硷拷锟斤拷锟斤拷
'REQUEST_URI'
URI 锟斤拷锟斤拷指锟斤拷要锟斤拷锟绞碉拷页锟芥。锟斤拷锟斤拷 "/index.html"锟斤拷
'PHP_AUTH_DIGEST'
锟斤拷锟斤拷为 Apache 模锟斤拷锟斤拷锟斤拷时锟斤拷锟斤拷锟斤拷 HTTP Digest 锟斤拷证锟侥癸拷锟斤拷锟叫o拷锟剿憋拷锟斤拷锟斤拷锟斤拷锟矫成客伙拷锟剿凤拷锟酵碉拷"Authorization" HTTP 头锟斤拷锟捷o拷锟皆憋拷锟斤拷锟斤拷一锟斤拷锟斤拷锟斤拷证锟斤拷锟斤拷锟斤拷锟斤拷
'PHP_AUTH_USER'
锟斤拷 PHP 锟斤拷锟斤拷锟斤拷 Apache 锟斤拷 IIS锟斤拷PHP 5 锟斤拷 ISAPI锟斤拷模锟介方式锟铰o拷锟斤拷锟斤拷锟斤拷锟斤拷使锟斤拷 HTTP 锟斤拷证锟斤拷锟杰o拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷没锟斤拷锟斤拷锟斤拷锟矫伙拷锟斤拷锟斤拷
'PHP_AUTH_PW'
锟斤拷 PHP 锟斤拷锟斤拷锟斤拷 Apache 锟斤拷 IIS锟斤拷PHP 5 锟斤拷 ISAPI锟斤拷模锟介方式锟铰o拷锟斤拷锟斤拷锟斤拷锟斤拷使锟斤拷 HTTP 锟斤拷证锟斤拷锟杰o拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷没锟斤拷锟斤拷锟斤拷锟斤拷锟诫。
'AUTH_TYPE'
锟斤拷 PHP 锟斤拷锟斤拷锟斤拷 Apache 模锟介方式锟铰o拷锟斤拷锟斤拷锟斤拷锟斤拷使锟斤拷 HTTP 锟斤拷证锟斤拷锟杰o拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟街わ拷锟斤拷锟斤拷汀锟�
'PATH_INFO'
锟斤拷锟斤拷锟缴客伙拷锟斤拷锟结供锟侥★拷锟斤拷锟斤拷锟斤拷实锟脚憋拷锟斤拷锟斤拷之锟斤拷锟斤拷锟节诧拷询锟斤拷洌╭uery string锟斤拷之前锟斤拷路锟斤拷锟斤拷息锟斤拷锟斤拷锟斤拷锟斤拷诘幕锟斤拷锟斤拷锟斤拷纾拷锟斤拷锟斤拷前锟脚憋拷锟斤拷通锟斤拷 URL http://www.example.com/php/path_info.php/some/stuff?foo=bar 锟斤拷锟斤拷锟绞o拷锟斤拷么 $_SERVER['PATH_INFO'] 锟斤拷锟斤拷锟斤拷 /some/stuff锟斤拷
'ORIG_PATH_INFO'
锟节憋拷 PHP 锟斤拷锟斤拷之前锟斤拷"PATH_INFO" 锟斤拷原始锟芥本锟斤拷

锟斤拷锟斤拷锟斤拷志

锟芥本 说锟斤拷
5.4.0 锟斤拷为锟狡筹拷锟斤拷 long array register 锟斤拷锟杰o拷$HTTP_SERVER_VARS 锟斤拷锟斤拷锟斤拷效锟斤拷
5.3.0 锟斤拷锟斤拷锟斤拷使 $HTTP_SERVER_VARS 锟斤拷效锟斤拷 register_long_arrays 指锟筋。
4.1.0 锟斤拷锟斤拷 $_SERVER锟斤拷锟斤拷锟斤拷 $HTTP_SERVER_VARS锟斤拷

锟斤拷锟斤拷

Example #1 $_SERVER 锟斤拷锟斤拷

<?php
echo $_SERVER['SERVER_NAME'];
?>

锟斤拷锟斤拷锟斤拷锟教碉拷锟斤拷锟斤拷锟斤拷锟斤拷冢锟�

www.example.com

注锟斤拷

Note:

"Superglobal"也锟斤拷为锟皆讹拷锟斤拷锟斤拷全锟街憋拷锟斤拷锟斤拷锟斤拷捅锟绞撅拷锟斤拷诮疟锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷卸锟斤拷强锟斤拷玫摹锟斤拷锟斤拷锟揭拷诤锟斤拷锟斤拷蚍椒锟斤拷锟斤拷锟� global $variable; 锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷