作者:陈业贵 华为云享专家 51cto(专家博主 明日之星 TOP红人) 阿里云专家博主
前言
学习学习$_SERVER各个系统函数的解释(图文并茂)
$_SERVER[‘PHP_SELF’]
<?php
echo $_SERVER['PHP_SELF'];

$_SERVER[‘SERVER_ADDR’]
<?php
echo $_SERVER['SERVER_ADDR'];

$_SERVER[‘SERVER_NAME’]
<?php
echo $_SERVER['SERVER_NAME'];

$_SERVER[‘SERVER_PROTOCOL’]
<?php
echo $_SERVER['SERVER_PROTOCOL'];

$_SERVER[‘REQUEST_METHOD’]
<?php
echo $_SERVER['REQUEST_METHOD'];

$_SERVER[‘DOCUMENT_ROOT’]
<?php
echo $_SERVER['DOCUMENT_ROOT'];

$_SERVER[‘HTTP_ACCEPT_LANGUAGE’]
<?php
echo $_SERVER['HTTP_ACCEPT_LANGUAGE'];

$_SERVER[‘SCRIPT_FILENAME’]
<?php
echo $_SERVER['SCRIPT_FILENAME'];

$_SERVER[‘SCRIPT_NAME’]
<?php
echo $_SERVER['SCRIPT_NAME'];

$_SERVER[‘REQUEST_URI’]
<?php
echo $_SERVER['REQUEST_URI'];

|