PHP里的$_SERVER对象
{SERVER_SOFTWARE: “Apache/2.4.18 (Ubuntu)”, REQUEST_URI: “/”, HTTP_HOST: “jerrywang.club:9015”, HTTP_CONNECTION: “keep-alive”, HTTP_PRAGMA: “no-cache”, …}
CONTEXT_DOCUMENT_ROOT: “/var/www/html”
CONTEXT_PREFIX: “”
DOCUMENT_ROOT: “/var/www/html”
GATEWAY_INTERFACE: “CGI/1.1”
HTTP_ACCEPT: “text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,/;q=0.8,application/signed-exchange;v=b3”
HTTP_ACCEPT_ENCODING: “gzip, deflate”
HTTP_ACCEPT_LANGUAGE: “en,zh;q=0.9,en-US;q=0.8,zh-CN;q=0.7”
HTTP_CACHE_CONTROL: “no-cache”
HTTP_CONNECTION: “keep-alive”
HTTP_COOKIE: “_ga=GA1.2.1252313243.1562494765; _gid=GA1.2.2101093714.1562494765; php-console-server=5; php-console-client=eyJwaHAtY29uc29sZS1jbGllbnQiOjV9”
HTTP_HOST: "jerrywang
HTTP_PRAGMA: “no-cache”
HTTP_REFERER: "http://jerrywang
HTTP_UPGRADE_INSECURE_REQUESTS: “1”
HTTP_USER_AGENT: “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36”
PATH: “/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin”
PHP_SELF: “/index.php”
QUERY_STRING: “”
REMOTE_ADDR: “171.217.21.148”
REMOTE_PORT: “44043”
REQUEST_METHOD: “GET”
REQUEST_SCHEME: “http”
REQUEST_TIME: “1562677619”
REQUEST_TIME_FLOAT: “1562677619.235”
REQUEST_URI: “/”
SCRIPT_FILENAME: “/var/www/html/index.php”
SCRIPT_NAME: “/index.php”
SERVER_ADDR: "17
SERVER_ADMIN: “[no address given]”
SERVER_NAME: “jerrywang
SERVER_PORT: “9015”
SERVER_PROTOCOL: “HTTP/1.1”
SERVER_SIGNATURE: “
SERVER_SOFTWARE: “Apache/2.4.18 (Ubuntu)”
要獲取更多Jerry的原創(chuàng)文章,請(qǐng)關(guān)注公眾號(hào)"汪子熙”:
總結(jié)
以上是生活随笔為你收集整理的PHP里的$_SERVER对象的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: 社保卡如何开通银行卡功能 怎样开通社保卡
- 下一篇: 新ipad怎么调满屏(汉典新字的基本解释