Content-Type: text/html COMGT | Show Environment (PHP Runtime)

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 37 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 32 items in array more  

:

Array
(
    [path] => 
)

Environment - Details

$_SERVER

$_SERVER: Array
(
    [UNIQUE_ID] => W0xSnErQECcAAGm@lesAAAAJ
    [SCRIPT_URL] => /lib/cgi/php-as-cgi/show_env.php
    [SCRIPT_URI] => http://comgt.com/lib/cgi/php-as-cgi/show_env.php
    [DOCUMENT_ROOT] => /kunden/homepages/41/d105562370/htdocs/comgt-com
    [HTTP_HOST] => comgt.com
    [HTTP_ACCEPT_ENCODING] => x-gzip, gzip, deflate
    [HTTP_USER_AGENT] => CCBot/2.0 (http://commoncrawl.org/faq/)
    [HTTP_ACCEPT] => text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
    [HTTP_IF_MODIFIED_SINCE] => Tue, 24 Apr 2018 16:10:04 GMT
    [HTTP_CONNECTION] => close
    [PATH] => /bin:/usr/bin
    [SERVER_SIGNATURE] => 
    [SERVER_SOFTWARE] => Apache
    [SERVER_NAME] => comgt.com
    [SERVER_ADDR] => 74.208.33.38
    [SERVER_PORT] => 80
    [REMOTE_ADDR] => 54.224.17.157
    [REQUEST_SCHEME] => http
    [CONTEXT_PREFIX] => 
    [CONTEXT_DOCUMENT_ROOT] => /var/www/html
    [SERVER_ADMIN] => webmaster@comgt.com
    [SCRIPT_FILENAME] => /kunden/homepages/41/d105562370/htdocs/comgt-com/lib/cgi/php-as-cgi/show_env.php
    [REMOTE_PORT] => 43872
    [GATEWAY_INTERFACE] => CGI/1.1
    [SERVER_PROTOCOL] => HTTP/1.1
    [REQUEST_METHOD] => GET
    [QUERY_STRING] => 
    [REQUEST_URI] => /lib/cgi/php-as-cgi/show_env.php
    [SCRIPT_NAME] => /lib/cgi/php-as-cgi/show_env.php
    [REDIRECT_STATUS] => 
    [STATUS] => 
    [PATH_TRANSLATED] => 
    [PHP_SELF] => /lib/cgi/php-as-cgi/show_env.php
    [REQUEST_TIME_FLOAT] => 1531728540.9706
    [REQUEST_TIME] => 1531728540
    [argv] => Array
        (
        )

    [argc] => 0
)

$_GET

$_GET: Array
(
)

$_POST

$_POST: Array
(
)

$myArgsArr

$myArgsArr: Array
(
)

$_FILES

$_FILES: Array
(
)

$_REQUEST

$_REQUEST: Array
(
)

$_SESSION

$_SESSION: 

$_ENV

$_ENV: Array
(
    [UNIQUE_ID] => W0xSnErQECcAAGm@lesAAAAJ
    [SCRIPT_URL] => /lib/cgi/php-as-cgi/show_env.php
    [SCRIPT_URI] => http://comgt.com/lib/cgi/php-as-cgi/show_env.php
    [DOCUMENT_ROOT] => /kunden/homepages/41/d105562370/htdocs/comgt-com
    [HTTP_HOST] => comgt.com
    [HTTP_ACCEPT_ENCODING] => x-gzip, gzip, deflate
    [HTTP_USER_AGENT] => CCBot/2.0 (http://commoncrawl.org/faq/)
    [HTTP_ACCEPT] => text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
    [HTTP_IF_MODIFIED_SINCE] => Tue, 24 Apr 2018 16:10:04 GMT
    [HTTP_CONNECTION] => close
    [PATH] => /bin:/usr/bin
    [SERVER_SIGNATURE] => 
    [SERVER_SOFTWARE] => Apache
    [SERVER_NAME] => comgt.com
    [SERVER_ADDR] => 74.208.33.38
    [SERVER_PORT] => 80
    [REMOTE_ADDR] => 54.224.17.157
    [REQUEST_SCHEME] => http
    [CONTEXT_PREFIX] => 
    [CONTEXT_DOCUMENT_ROOT] => /var/www/html
    [SERVER_ADMIN] => webmaster@comgt.com
    [SCRIPT_FILENAME] => /kunden/homepages/41/d105562370/htdocs/comgt-com/lib/cgi/php-as-cgi/show_env.php
    [REMOTE_PORT] => 43872
    [GATEWAY_INTERFACE] => CGI/1.1
    [SERVER_PROTOCOL] => HTTP/1.1
    [REQUEST_METHOD] => GET
    [QUERY_STRING] => 
    [REQUEST_URI] => /lib/cgi/php-as-cgi/show_env.php
    [SCRIPT_NAME] => /lib/cgi/php-as-cgi/show_env.php
    [REDIRECT_STATUS] => 
    [STATUS] => 
    [PATH_TRANSLATED] => 
)

phpinfo()

Page generated in 0.0017 seconds (1700 microseconds)