PHP学习笔记(2)-重要的数组[]
一些重要的数组
$_COOKIE[] the cookies send by clients
$_ENV[], example $_ENV["HOSTNAME"]
$_FILES[], used for upload files
error, name, size, tmp_name, type. Example $_FILES["formvalue"]["name"]
$_GET[], the values posted by HTTP GET method
$_POST[], the values posted by HTTP POST method
$_REQUEST[], combines _GET, _POST, _COOKIES, _FILES
$SERVER
$_SERVER["DOCUMENT_ROOT"] = /var/www/html
HTTP_ACCEPT = "*/*"
HTTP_ACCEPT_CHARSET
HTTP_ACCEPT_ENCODING
HTTP_ACCEPT_LANGUAGE
HTTP_CONNECTION = Keep-Alive
HTTP_HOST
HTTP_REFERER
HTTP_USER_AGENT
PHP_AUTH_PW
PHP_AUTH_TYPE
PHP_AUTH_USER
PHP_SELF
QUERY_STRING
REMOTE_ADDR
REMOTE_PORT
REQUEST_METHOD
REQUEST_URI
SERVER_ADMIN ( email address )
SERVER_NAME
SERVER_PORT
SERVER_PROTOCOL
SERVER_SIGNATURE // banner of the server
$_SESSION[]
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】凌霞软件回馈社区,博客园 & 1Panel & Halo 联合会员上线
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步