码迷,mamicode.com
首页 > 其他好文 > 详细

$_server[]关于浏览器和服务器的参数获取

时间:2017-06-17 11:12:57      阅读:238      评论:0      收藏:0      [点我收藏+]

标签:software   method   127.0.0.1   uri   stat   agent   sch   blog   参数   

$_SERVER[‘USER‘]    www
$_SERVER[‘HOME‘]    /home/www
$_SERVER[‘HTTP_UPGRADE_INSECURE_REQUESTS‘]    1
$_SERVER[‘HTTP_CONNECTION‘]    keep-alive
$_SERVER[‘HTTP_ACCEPT_ENCODING‘]    gzip, deflate
$_SERVER[‘HTTP_ACCEPT_LANGUAGE‘]    en-US,en;q=0.5
$_SERVER[‘HTTP_ACCEPT‘]    text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
$_SERVER[‘HTTP_USER_AGENT‘]    Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0
$_SERVER[‘HTTP_HOST‘]    localhost
$_SERVER[‘PHP_ADMIN_VALUE‘]    open_basedir=/home/wwwroot/default/:/tmp/:/proc/
$_SERVER[‘REDIRECT_STATUS‘]    200
$_SERVER[‘SERVER_NAME‘]    _
$_SERVER[‘SERVER_PORT‘]    80
$_SERVER[‘SERVER_ADDR‘]    127.0.0.1
$_SERVER[‘REMOTE_PORT‘]    44936
$_SERVER[‘REMOTE_ADDR‘]    127.0.0.1
$_SERVER[‘SERVER_SOFTWARE‘]    nginx/1.12.0
$_SERVER[‘GATEWAY_INTERFACE‘]    CGI/1.1
$_SERVER[‘REQUEST_SCHEME‘]    http
$_SERVER[‘SERVER_PROTOCOL‘]    HTTP/1.1
$_SERVER[‘DOCUMENT_ROOT‘]    /home/wwwroot/default
$_SERVER[‘DOCUMENT_URI‘]    /phpinfo.php
$_SERVER[‘REQUEST_URI‘]    /phpinfo.php
$_SERVER[‘SCRIPT_NAME‘]    /phpinfo.php
$_SERVER[‘CONTENT_LENGTH‘]    no value
$_SERVER[‘CONTENT_TYPE‘]    no value
$_SERVER[‘REQUEST_METHOD‘]    GET
$_SERVER[‘QUERY_STRING‘]    no value
$_SERVER[‘SCRIPT_FILENAME‘]    /home/wwwroot/default/phpinfo.php
$_SERVER[‘FCGI_ROLE‘]    RESPONDER
$_SERVER[‘PHP_SELF‘]    /phpinfo.php
$_SERVER[‘REQUEST_TIME_FLOAT‘]    1497664821.1267
$_SERVER[‘REQUEST_TIME‘]    1497664821

今天安装redis扩展看到这些东西,做了下笔记,想获取浏览器和服务器的信息就靠他们了

$_server[]关于浏览器和服务器的参数获取

标签:software   method   127.0.0.1   uri   stat   agent   sch   blog   参数   

原文地址:http://www.cnblogs.com/hanshuai0921/p/7039463.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!