php $_SERVER değişkenleri

php de kullanılan $_SERVER değişkenlerinin döngü ile ekrana basmak için aşağıdaki kodu kullanabilirsiniz

 

Alıntı 

Çıktısı aşağıdaki gibidir.

HTTP_HOST = localhost
HTTP_CONNECTION = keep-alive
HTTP_CACHE_CONTROL = max-age=0
HTTP_UPGRADE_INSECURE_REQUESTS = 1
HTTP_USER_AGENT = Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.181 Safari/537.36
HTTP_ACCEPT = text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8
HTTP_ACCEPT_ENCODING = gzip, deflate, br
HTTP_ACCEPT_LANGUAGE = tr-TR,tr;q=0.9,en-US;q=0.8,en;q=0.7
HTTP_COOKIE = PHPSESSID=ithhmq8ruqqnk777lnr5oq4607
PATH = C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\system32\config\systemprofile\AppData\Local\Microsoft\WindowsApps
SystemRoot = C:\WINDOWS
COMSPEC = C:\WINDOWS\system32\cmd.exe
PATHEXT = .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
WINDIR = C:\WINDOWS
SERVER_SIGNATURE =

Apache/2.4.33 (Win64) PHP/5.6.35 Server at localhost Port 80

SERVER_SOFTWARE = Apache/2.4.33 (Win64) PHP/5.6.35
SERVER_NAME = localhost
SERVER_ADDR = ::1
SERVER_PORT = 80
REMOTE_ADDR = ::1
DOCUMENT_ROOT = C:/wamp64/www
REQUEST_SCHEME = http
CONTEXT_PREFIX = 
CONTEXT_DOCUMENT_ROOT = C:/wamp64/www
SERVER_ADMIN = wampserver@wampserver.invalid
SCRIPT_FILENAME = C:/wamp64/www/yeni/sil_server.php
REMOTE_PORT = 61766
GATEWAY_INTERFACE = CGI/1.1
SERVER_PROTOCOL = HTTP/1.1
REQUEST_METHOD = GET
QUERY_STRING = 
REQUEST_URI = /yeni/sil_server.php
SCRIPT_NAME = /yeni/sil_server.php
PHP_SELF = /yeni/sil_server.php
REQUEST_TIME_FLOAT = 1523860973.45
REQUEST_TIME = 1523860973

Yazar: Mustafa Şadoğlu

Mustafa sitemizde 111 yazı eklemiş...

Share