Welcome to collectivesolver - Programming & Software Q&A with code examples. A website with trusted programming answers. All programs are tested and work.

Contact: aviboots(AT)netvision.net.il

Buy a domain name - Register cheap domain names from $0.99 - Namecheap

Scalable Hosting That Grows With You

Secure & Reliable Web Hosting, Free Domain, Free SSL, 1-Click WordPress Install, Expert 24/7 Support

Semrush - keyword research tool

Boost your online presence with premium web hosting and servers

Disclosure: My content contains affiliate links.

39,870 questions

51,793 answers

573 users

How to print the Server Information in PHP

1 Answer

0 votes
foreach ($_SERVER as $key => $value)
    echo $key . " = " . $value . "<br>";
    
/*
ALLUSERSPROFILE = C:\ProgramData
APPDATA = C:\Users\Avi\AppData\Roaming
asl_log = Destination=file
CommonProgramFiles = C:\Program Files (x86)\Common Files
CommonProgramFiles(x86) = C:\Program Files (x86)\Common Files
CommonProgramW6432 = C:\Program Files\Common Files
FP_NO_HOST_CHECK = NO
PROCESSOR_ARCHITECTURE = x86
PROCESSOR_ARCHITEW6432 = AMD64
PROCESSOR_IDENTIFIER = Intel64 Family 6 Model 58 Stepping 9, GenuineIntel
PROCESSOR_LEVEL = 6
PROCESSOR_REVISION = 3a09
ProgramData = C:\ProgramData
ProgramFiles = C:\Program Files (x86)
ProgramFiles(x86) = C:\Program Files (x86)
ProgramW6432 = C:\Program Files
USERNAME = Avi
USERPROFILE = C:\Users\Avi
windir = C:\Windows
PHP_FCGI_MAX_REQUESTS = 250
ORIG_SCRIPT_NAME = /php/php-cgi.exe
ORIG_PATH_INFO = /index.php
REQUEST_METHOD = GET
SERVER_PROTOCOL = HTTP/1.1
GATEWAY_INTERFACE = CGI/1.1
SERVER_PORT = 8080
SERVER_NAME = localhost
HTTP_CACHE_CONTROL = no-cache
HTTP_CONNECTION = keep-alive
HTTP_HOST = localhost:8080
HTTP_ACCEPT_LANGUAGE = en-US,en;q=0.5
REDIRECT_STATUS = 200
...
...
...
*/


answered Jul 5, 2014 by avibootz
edited Jul 5, 2014 by avibootz

Related questions

1 answer 542 views
1 answer 322 views
1 answer 137 views
137 views asked Apr 23, 2018 by avibootz
1 answer 166 views
166 views asked Mar 2, 2018 by avibootz
...