Show Environment (PHP Runtime)

Test Cases

1. How executing on server?
As CGI[1]   As Module
  Yes
check[2]    
* Not: if not runing script but downloading file [1] or check [2] indicates all good, DO check Apache configuration!
May need to uncomment (in httpd.conf):
LoadModule cgi_module libexec/apache2/mod_cgi.so
2. How called from browser?
a) URL, GET show_env.php?variant=get-in-url#xx
b) Form, GET
c) Form, POST

This particular execution: ...

Variable Content  
$_SERVER 43 items in array more  
  ['REQUEST_METHOD'] GET  
  ['HTTP_REFERER']  
$_GET 0 items in array  
$_POST 0 items in array  
$myArgsArr 0 items in array  
$_FILES 0 items in array  
$_REQUEST 0 items in array  
$_SESSION 0 items in array  
$_ENV 38 items in array more  

:

Array
(
    [path] => 
)

Environment - Details

$_SERVER

$_SERVER: Array
(
    [REDIRECT_UNIQUE_ID] => XA9JykrQOOQAAAM22YoAAAAF
    [REDIRECT_SCRIPT_URL] => /lib/cgi/php-as-module/show_env.php
    [REDIRECT_SCRIPT_URI] => http://comgt.com/lib/cgi/php-as-module/show_env.php
    [REDIRECT_DOCUMENT_ROOT] => /kunden/homepages/41/d105562370/htdocs/comgt-com
    [REDIRECT_HANDLER] => x-mapp-php5.4
    [REDIRECT_STATUS] => 200
    [UNIQUE_ID] => XA9JykrQOOQAAAM22YoAAAAF
    [SCRIPT_URL] => /lib/cgi/php-as-module/show_env.php
    [SCRIPT_URI] => http://comgt.com/lib/cgi/php-as-module/show_env.php
    [HTTP_HOST] => comgt.com
    [HTTP_USER_AGENT] => CCBot/2.0 (https://commoncrawl.org/faq/)
    [HTTP_ACCEPT] => text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
    [HTTP_IF_MODIFIED_SINCE] => Wed, 17 Oct 2018 10:24:25 UTC
    [HTTP_ACCEPT_ENCODING] => gzip
    [PATH] => /bin:/usr/bin
    [SERVER_SIGNATURE] => 
    [SERVER_SOFTWARE] => Apache
    [SERVER_NAME] => comgt.com
    [SERVER_ADDR] => 74.208.56.228
    [SERVER_PORT] => 80
    [REMOTE_ADDR] => 54.167.15.6
    [DOCUMENT_ROOT] => /kunden/homepages/41/d105562370/htdocs/comgt-com
    [REQUEST_SCHEME] => http
    [CONTEXT_PREFIX] => /system-bin/
    [CONTEXT_DOCUMENT_ROOT] => /kunden/usr/lib/cgi-bin/
    [SERVER_ADMIN] => webmaster@comgt.com
    [SCRIPT_FILENAME] => /kunden/homepages/41/d105562370/htdocs/comgt-com/lib/cgi/php-as-module/show_env.php
    [REMOTE_PORT] => 47210
    [REDIRECT_URL] => /lib/cgi/php-as-module/show_env.php
    [GATEWAY_INTERFACE] => CGI/1.1
    [SERVER_PROTOCOL] => HTTP/1.1
    [REQUEST_METHOD] => GET
    [QUERY_STRING] => 
    [REQUEST_URI] => /lib/cgi/php-as-module/show_env.php
    [SCRIPT_NAME] => /lib/cgi/php-as-module/show_env.php
    [STATUS] => 200
    [ORIG_PATH_INFO] => /lib/cgi/php-as-module/show_env.php
    [ORIG_PATH_TRANSLATED] => /kunden/homepages/41/d105562370/htdocs/comgt-com/lib/cgi/php-as-module/show_env.php
    [PHP_SELF] => /lib/cgi/php-as-module/show_env.php
    [REQUEST_TIME_FLOAT] => 1544505802.4692
    [REQUEST_TIME] => 1544505802
    [argv] => Array
        (
        )

    [argc] => 0
)

$_GET

$_GET: Array
(
)

$_POST

$_POST: Array
(
)

$myArgsArr

$myArgsArr: Array
(
)

$_FILES

$_FILES: Array
(
)

$_REQUEST

$_REQUEST: Array
(
)

$_SESSION

$_SESSION: 

$_ENV

$_ENV: Array
(
    [REDIRECT_UNIQUE_ID] => XA9JykrQOOQAAAM22YoAAAAF
    [REDIRECT_SCRIPT_URL] => /lib/cgi/php-as-module/show_env.php
    [REDIRECT_SCRIPT_URI] => http://comgt.com/lib/cgi/php-as-module/show_env.php
    [REDIRECT_DOCUMENT_ROOT] => /kunden/homepages/41/d105562370/htdocs/comgt-com
    [REDIRECT_HANDLER] => x-mapp-php5.4
    [REDIRECT_STATUS] => 200
    [UNIQUE_ID] => XA9JykrQOOQAAAM22YoAAAAF
    [SCRIPT_URL] => /lib/cgi/php-as-module/show_env.php
    [SCRIPT_URI] => http://comgt.com/lib/cgi/php-as-module/show_env.php
    [HTTP_HOST] => comgt.com
    [HTTP_USER_AGENT] => CCBot/2.0 (https://commoncrawl.org/faq/)
    [HTTP_ACCEPT] => text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
    [HTTP_IF_MODIFIED_SINCE] => Wed, 17 Oct 2018 10:24:25 UTC
    [HTTP_ACCEPT_ENCODING] => gzip
    [PATH] => /bin:/usr/bin
    [SERVER_SIGNATURE] => 
    [SERVER_SOFTWARE] => Apache
    [SERVER_NAME] => comgt.com
    [SERVER_ADDR] => 74.208.56.228
    [SERVER_PORT] => 80
    [REMOTE_ADDR] => 54.167.15.6
    [DOCUMENT_ROOT] => /kunden/homepages/41/d105562370/htdocs/comgt-com
    [REQUEST_SCHEME] => http
    [CONTEXT_PREFIX] => /system-bin/
    [CONTEXT_DOCUMENT_ROOT] => /kunden/usr/lib/cgi-bin/
    [SERVER_ADMIN] => webmaster@comgt.com
    [SCRIPT_FILENAME] => /kunden/homepages/41/d105562370/htdocs/comgt-com/lib/cgi/php-as-module/show_env.php
    [REMOTE_PORT] => 47210
    [REDIRECT_URL] => /lib/cgi/php-as-module/show_env.php
    [GATEWAY_INTERFACE] => CGI/1.1
    [SERVER_PROTOCOL] => HTTP/1.1
    [REQUEST_METHOD] => GET
    [QUERY_STRING] => 
    [REQUEST_URI] => /lib/cgi/php-as-module/show_env.php
    [SCRIPT_NAME] => /lib/cgi/php-as-module/show_env.php
    [STATUS] => 200
    [ORIG_PATH_INFO] => /lib/cgi/php-as-module/show_env.php
    [ORIG_PATH_TRANSLATED] => /kunden/homepages/41/d105562370/htdocs/comgt-com/lib/cgi/php-as-module/show_env.php
)

phpinfo()

Page generated in 0.0012 seconds (1200 microseconds)