### t3lib_div::getIndpEnv()

These are 'system variables' returned from t3lib_div::getIndpEnv() and should be universal for any server configuration:

HTTP_HOST | 192.168.230.3
TYPO3_HOST_ONLY | 192.168.230.3
TYPO3_PORT |
PATH_INFO |
QUERY_STRING | arg1,arg2,arg3&p1=parameter1&p2[key]=0f03
REQUEST_URI | /typo3/32/typo3_src-3.6.0RC1/misc/phpcheck/index.php?arg1,arg2,arg3&p1=parameter1&p2[key]=0f03
HTTP_REFERER | http://192.168.230.3/typo3/32/typo3_src-3.6.0RC1/misc/phpcheck/
TYPO3_REQUEST_HOST | http://192.168.230.3
TYPO3_REQUEST_URL | http://192.168.230.3/typo3/32/typo3_src-3.6.0RC1/misc/phpcheck/index.php?arg1,arg2,arg3&p1=parameter1&p2[key]=0f03
TYPO3_REQUEST_SCRIPT | http://192.168.230.3/typo3/32/typo3_src-3.6.0RC1/misc/phpcheck/index.php
TYPO3_REQUEST_DIR | http://192.168.230.3/typo3/32/typo3_src-3.6.0RC1/misc/phpcheck/
TYPO3_SITE_URL | http://192.168.230.3/typo3/32/typo3_src-3.6.0RC1/misc/phpcheck/
SCRIPT_NAME | /typo3/32/typo3_src-3.6.0RC1/misc/phpcheck/index.php
TYPO3_DOCUMENT_ROOT | /www/htdocs
SCRIPT_FILENAME | /www/htdocs/typo3/32/typo3_src-3.6.0RC1/misc/phpcheck/index.php
REMOTE_ADDR | 192.168.230.1
REMOTE_HOST |
HTTP_USER_AGENT | Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)
HTTP_ACCEPT_LANGUAGE | da

PHP_OS | Linux
TYPO3_OS |
PATH_thisScript | /www/htdocs/typo3/32/typo3_src-3.6.0RC1/misc/phpcheck/index.php
php_sapi_name() | apache

### Raw values

These are the raw 'system variables' returned from getenv(), HTTP_SERVER_VARS, HTTP_ENV_VARS etc. These are displayed here so we can find the right values via this testscript to map to with t3lib_div::getIndpEnv()

Key | getenv() | HTTP_SERVER_VARS | _SERVER | HTTP_ENV_VARS | _ENV
REQUEST_URI | /typo3/32/typo3_src-3.6.0RC1/misc/phpcheck/index.php?arg1,arg2,arg3&p1=parameter1&p2[key]=0f03 | /typo3/32/typo3_src-3.6.0RC1/misc/phpcheck/index.php?arg1,arg2,arg3&p1=parameter1&p2[key]=0f03 | /typo3/32/typo3_src-3.6.0RC1/misc/phpcheck/index.php?arg1,arg2,arg3&p1=parameter1&p2[key]=0f03 |  |
REMOTE_ADDR | 192.168.230.1 | 192.168.230.1 | 192.168.230.1 |  |
REMOTE_HOST |  |  |  |  |
PATH_INFO |  |  |  |  |
SCRIPT_NAME | /typo3/32/typo3_src-3.6.0RC1/misc/phpcheck/index.php | /typo3/32/typo3_src-3.6.0RC1/misc/phpcheck/index.php | /typo3/32/typo3_src-3.6.0RC1/misc/phpcheck/index.php |  |
SCRIPT_FILENAME | /www/htdocs/typo3/32/typo3_src-3.6.0RC1/misc/phpcheck/index.php | /www/htdocs/typo3/32/typo3_src-3.6.0RC1/misc/phpcheck/index.php | /www/htdocs/typo3/32/typo3_src-3.6.0RC1/misc/phpcheck/index.php |  |
HTTP_HOST | 192.168.230.3 | 192.168.230.3 | 192.168.230.3 |  |
HTTP_USER_AGENT | Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1) | Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1) | Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1) |  |
HTTP_ACCEPT_ENCODING | gzip, deflate | gzip, deflate | gzip, deflate |  |
HTTP_REFERER | http://192.168.230.3/typo3/32/typo3_src-3.6.0RC1/misc/phpcheck/ | http://192.168.230.3/typo3/32/typo3_src-3.6.0RC1/misc/phpcheck/ | http://192.168.230.3/typo3/32/typo3_src-3.6.0RC1/misc/phpcheck/ |  |
QUERY_STRING | arg1,arg2,arg3&p1=parameter1&p2[key]=0f03 | arg1,arg2,arg3&p1=parameter1&p2[key]=0f03 | arg1,arg2,arg3&p1=parameter1&p2[key]=0f03 |  |

$GLOBALS["HTTP_SERVER_VARS"]["DOCUMENT_ROOT"] | /www/htdocs
$HTTP_SERVER_VARS["PATH_TRANSLATED"] | /www/htdocs/typo3/32/typo3_src-3.6.0RC1/misc/phpcheck/index.php
$GLOBALS["HTTP_SERVER_VARS"]["REDIRECT_URL"] | /typo3/32/typo3_src-3.6.0RC1/misc/phpcheck/index.php
$GLOBALS["HTTP_SERVER_VARS"]["REQUEST_URI"] | /typo3/32/typo3_src-3.6.0RC1/misc/phpcheck/index.php?arg1,arg2,arg3&p1=parameter1&p2[key]=0f03

Cookie 'test_script_cookie': 'Cookie Value!'

### What to do now?

1) Click this link above once more: Go to this page again.
2) Then save this HTML-page and send it to kasper@typo3.com with information about 1) which webserver (Apache/ISS), 2) Unix/Windows, 3) CGI or module (ISAPI)
3) If you are really advanced you try and click the link below here. With CGI-versions of servers it will most likely give an error page. If it does not, please send the output to me as well (save HTML-page and send to kasper@typo3.com). If you do this PATH_INFO test, please let me know.
4) For the really, really advanced folks, it might be interesting to see the output if you could place this link in the root of a domain. That means the index.php script will be executed from eg. "http://www.blablabla.com/" and not "http://www.blablabla.com/kaspers_test/" - it can make a difference.
I am operating with these categories of servers. Please identify your configuration and label your email with that "type":

TYPE: | Description:
WA13CGI | Windows / Apache 1.3.x / CGI
WA2CGI | Windows / Apache 2.x / CGI
WA13ISAPI | Windows / Apache 1.3.x / ISAPI-module
WA2ISAPI | Windows / Apache 2.x / ISAPI-module
WISS_CGI | Windows / ISS / CGI
WISS_ISAPI | Windows / ISS / ISAPI-module
MA13MOD | Mac (Darwin) / Apache 1.3.x / Module
LA13CGI | Linux / Apache 1.3.x / CGI
LA2CGI | Linux / Apache 2.x / CGI
LA13MOD | Linux / Apache 1.3.x / Module
LA2MOD | Linux / Apache 2.x / Module

Go to this page again (PATH_INFO).

# PHP Version 4.2.3

System | Linux T3dev 2.4.19-16mdk #1 Fri Sep 20 18:15:05 CEST 2002 i686 unknown unknown GNU/Linux
Build Date | Jan 19 2003 16:34:24
Configure Command | './configure' '--with-gd=../gd-1.8.3' '--with-ttf=../freetype-1.3.1' '--with-zlib' '--with-pdflib' '--with-t1lib=../T1-1.1.1' '--with-xml' '--with-mysql' '--with-apache=../apache_1.3.27' '--enable-track-vars'
Server API | Apache
Virtual Directory Support | disabled
Configuration File (php.ini) Path | /usr/local/Zend/etc/php.ini
Debug Build | no
Thread Safety | disabled

This program makes use of the Zend Scripting Language Engine: Zend Engine v1.2.0, Copyright (c) 1998-2002 Zend Technologies with the ionCube PHP Accelerator v1.3.3r1, Copyright (c) 2001-2002, by Nick Lindridge

# PHP 4 Credits

# Configuration

## PHP Core

Directive | Local Value | Master Value
--- | --- | ---
allow_call_time_pass_reference | Off | Off
allow_url_fopen | 1 | 1
always_populate_raw_post_data | 0 | 0
arg_separator.input | & | &
arg_separator.output | & | &
asp_tags | Off | Off
auto_append_file | no value | no value
auto_prepend_file | no value | no value
browscap | no value | no value
default_charset | no value | no value
default_mimetype | text/html | text/html
define_syslog_variables | Off | Off
disable_functions | no value | no value
display_errors | On | On
display_startup_errors | Off | Off
doc_root | no value | no value
enable_dl | On | On
error_append_string | no value | no value
error_log | no value | no value
error_prepend_string | no value | no value
error_reporting | 2047 | 2047
expose_php | On | On
extension_dir | ./ | ./
file_uploads | 1 | 1
gpc_order | GPC | GPC
highlight.bg | #FFFFFF | #FFFFFF
highlight.comment | #FF8000 | #FF8000
highlight.default | #0000BB | #0000BB
highlight.html | #000000 | #000000
highlight.keyword | #007700 | #007700
highlight.string | #DD0000 | #DD0000
html_errors | On | On
ignore_user_abort | Off | Off
implicit_flush | Off | Off
include_path | .:/usr/local/lib/php | .:/usr/local/lib/php
log_errors | On | On
magic_quotes_gpc | Off | Off
magic_quotes_runtime | Off | Off
magic_quotes_sybase | Off | Off
max_execution_time | 60 | 60
open_basedir | /www/htdocs/typo3/32/ | /www/htdocs/typo3/32/
output_buffering | 4096 | 4096
output_handler | no value | no value
phpa | 1 | 1
phpa.cache_dir | /tmp | /tmp
phpa.cache_file_prune_period | 1h | 1h
phpa.cache_file_ttl | 1d | 1d
phpa.enable_php_memory_bug_workaround | 0 | 0
phpa.file_perms | 400 | 400
phpa.ignore_dirs | no value | no value
phpa.ignore_files | no value | no value
phpa.lock_threshold0 | 10 | 10
phpa.lock_threshold1 | 10 | 10
phpa.shm_group | no value | no value
phpa.shm_ignore_dirs | no value | no value
phpa.shm_ignore_files | no value | no value
phpa.shm_key | 0x0C0DEB00 | 0x0C0DEB00
phpa.shm_max_processes | 512 | 512
phpa.shm_perms | 666 | 666
phpa.shm_release_at_exit | 1 | 1
phpa.shm_size | 32 | 32
phpa.shm_stats_check_period | 5m | 5m
phpa.shm_ttl | 12h | 12h
phpa.shm_user | no value | no value
phpa.tweaks | 1 | 1
post_max_size | 8M | 8M
precision | 14 | 14
register_argc_argv | Off | Off
register_globals | Off | Off
safe_mode | On | On
safe_mode_exec_dir | /www/htdocs/smexec/ | /www/htdocs/smexec/
safe_mode_gid | Off | Off
safe_mode_include_dir | no value | no value
sendmail_from | me@localhost.com | me@localhost.com
sendmail_path | /usr/sbin/sendmail -t -i | /usr/sbin/sendmail -t -i
short_open_tag | Off | Off
SMTP | localhost | localhost
sql.safe_mode | Off | Off
track_errors | Off | Off
unserialize_callback_func | no value | no value
upload_max_filesize | 2M | 2M
upload_tmp_dir | no value | no value
user_dir | no value | no value
variables_order | GPCS | GPCS
xmlrpc_error_number | 0 | 0
xmlrpc_errors | Off | Off
y2k_compliance | On | On

## xml

XML Support | active
XML Namespace Support | active
EXPAT Version | 1.95.2

## wddx

WDDX Support | enabled
--- | ---
WDDX Session Serializer | enabled

## standard

Regex Library | Bundled library enabled
Dynamic Library Support | enabled
Path to sendmail | /usr/sbin/sendmail -t -i

Directive | Local Value | Master Value
--- | --- | ---
assert.active | 1 | 1
assert.bail | 0 | 0
assert.callback | no value | no value
assert.quiet_eval | 0 | 0
assert.warning | 1 | 1
safe_mode_allowed_env_vars | PHP_ | PHP_
safe_mode_protected_env_vars | LD_LIBRARY_PATH | LD_LIBRARY_PATH
url_rewriter.tags | a=href,area=href,frame=src,input=src,form=fakeentry | a=href,area=href,frame=src,input=src,form=fakeentry

## session

Session Support | enabled

Directive | Local Value | Master Value
--- | --- | ---
session.auto_start | Off | Off
session.cache_expire | 180 | 180
session.cache_limiter | nocache | nocache
session.cookie_domain | no value | no value
session.cookie_lifetime | 0 | 0
session.cookie_path | / | /
session.cookie_secure | Off | Off
session.entropy_file | no value | no value
session.entropy_length | 0 | 0
session.gc_maxlifetime | 1440 | 1440
session.gc_probability | 1 | 1
session.name | PHPSESSID | PHPSESSID
session.referer_check | no value | no value
session.save_handler | files | files
session.save_path | /tmp | /tmp
session.serialize_handler | php | php
session.use_cookies | On | On
session.use_trans_sid | 0 | 0

## posix

Revision | $Revision$

## pdf

PDF Support | enabled
PDFlib GmbH Version | 4.0.1
Revision | $Revision$

## pcre

PCRE (Perl Compatible Regular Expressions) Support | enabled
PCRE Library Version | 3.4 22-Aug-2000

## mysql

MySQL Support | enabled
--- | ---
Active Persistent Links | 0
Active Links | 0
Client API version | 3.23.39
MYSQL_MODULE_TYPE | builtin
MYSQL_SOCKET | /tmp/mysql.sock
MYSQL_INCLUDE |
MYSQL_LIBS |

Directive | Local Value | Master Value
--- | --- | ---
mysql.allow_persistent | On | On
mysql.default_host | no value | no value
mysql.default_password | no value | no value
mysql.default_port | no value | no value
mysql.default_socket | no value | no value
mysql.default_user | no value | no value
mysql.max_links | Unlimited | Unlimited
mysql.max_persistent | Unlimited | Unlimited

## gd

GD Support | enabled
GD Version | 1.6.2 or higher
FreeType Support | enabled
FreeType Linkage | with TTF library
T1Lib Support | enabled
GIF Read Support | enabled
GIF Create Support | enabled
WBMP Support | enabled

## ctype

ctype functions | enabled (experimental)

## zlib

ZLib Support | enabled
'zlib:' fopen wrapper | enabled
Compiled Version | 1.1.4
Linked Version | 1.1.4

Directive | Local Value | Master Value
--- | --- | ---
zlib.output_compression | Off | Off

## apache

APACHE_INCLUDE |
APACHE_TARGET |
Apache Version | Apache/1.3.27
Apache Release | 10327100
Apache API Version | 19990320
Hostname:Port | 192.168.58.3:80
User/Group | httpd(502)/502
Max Requests | Per Child: 0 - Keep Alive: on - Max Per Connection: 100
Timeouts | Connection: 300 - Keep-Alive: 15
Server Root | /www
Loaded Modules | mod_gzip, mod_php4, mod_setenvif, mod_so, mod_auth, mod_access, mod_rewrite, mod_alias, mod_userdir, mod_actions, mod_imap, mod_asis, mod_cgi, mod_dir, mod_autoindex, mod_include, mod_status, mod_negotiation, mod_mime, mod_log_config, mod_env, http_core

Directive | Local Value | Master Value
--- | --- | ---
child_terminate | 0 | 0
engine | 1 | 1
last_modified | 0 | 0
xbithack | 0 | 0

## Apache Environment

Variable | Value
--- | ---
DOCUMENT_ROOT | /www/htdocs
HTTP_ACCEPT | */*
HTTP_ACCEPT_ENCODING | gzip, deflate
HTTP_ACCEPT_LANGUAGE | da
HTTP_CONNECTION | Keep-Alive
HTTP_COOKIE | test_script_cookie=Cookie+Value%21
HTTP_HOST | 192.168.230.3
HTTP_REFERER | http://192.168.230.3/typo3/32/typo3_src-3.6.0RC1/misc/phpcheck/
HTTP_USER_AGENT | Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)
PATH | /sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin
REDIRECT_QUERY_STRING | arg1,arg2,arg3&p1=parameter1&p2[key]=0f03
REDIRECT_STATUS | 200
REDIRECT_URL | /typo3/32/typo3_src-3.6.0RC1/misc/phpcheck/index.php
REMOTE_ADDR | 192.168.230.1
REMOTE_PORT | 3054
SCRIPT_FILENAME | /www/htdocs/typo3/32/typo3_src-3.6.0RC1/misc/phpcheck/index.php
SERVER_ADDR | 192.168.230.3
SERVER_ADMIN | root@T3dev
SERVER_NAME | 192.168.58.3
SERVER_PORT | 80
SERVER_SIGNATURE | <ADDRESS>Apache/1.3.27 Server at 192.168.58.3 Port 80</ADDRESS>
SERVER_SOFTWARE | Apache/1.3.27 (Unix) mod_gzip/1.3.19.1a PHP/4.2.3
GATEWAY_INTERFACE | CGI/1.1
SERVER_PROTOCOL | HTTP/1.1
REQUEST_METHOD | GET
QUERY_STRING | arg1,arg2,arg3&p1=parameter1&p2[key]=0f03
REQUEST_URI | /typo3/32/typo3_src-3.6.0RC1/misc/phpcheck/index.php?arg1,arg2,arg3&p1=parameter1&p2[key]=0f03
SCRIPT_NAME | /typo3/32/typo3_src-3.6.0RC1/misc/phpcheck/index.php

## HTTP Headers Information

HTTP Request Headers
HTTP Request | GET /typo3/32/typo3_src-3.6.0RC1/misc/phpcheck/index.php?arg1,arg2,arg3&p1=parameter1&p2[key]=0f03 HTTP/1.1
Accept | */*
Accept-Encoding | gzip, deflate
Accept-Language | da
Connection | Keep-Alive
Cookie | test_script_cookie=Cookie+Value%21
Host | 192.168.230.3
Referer | http://192.168.230.3/typo3/32/typo3_src-3.6.0RC1/misc/phpcheck/
User-Agent | Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)
HTTP Response Headers
X-Powered-By | PHP/4.2.3
X-Accelerated-By | PHPA/1.3.3r1
Set-Cookie | test_script_cookie=Cookie+Value%21; path=/
Keep-Alive | timeout=15, max=98
Connection | Keep-Alive
Transfer-Encoding | chunked
Content-Type | text/html

## Additional Modules

## Environment

Variable | Value
--- | ---
service | 52
CONSOLE | /dev/console
TERM | linux
LOCPATH | /etc/locale
INIT_VERSION | sysvinit-2.83
AUTOBOOT | YES
res |
PATH | /sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin
runlevel | 3
RUNLEVEL | 3
devfs | mount
PWD | /
LANG | en_US
previous | N
PREVLEVEL | N
out | /dev/vc/
SHLVL | 3
HOME | /
BOOT_IMAGE | linux
splash | yes
nbservices | 53
LOGO_CONSOLE | no
TEXTDOMAINDIR | /etc/locale
_ | /www/bin/httpd

## PHP Variables

Variable | Value
--- | ---
_GET["arg1,arg2,arg3"] |
_GET["p1"] | parameter1

_GET["p2"]

    Array
    (
        [key] => 0f03
    )

_COOKIE["test_script_cookie"] | Cookie Value!
_SERVER["DOCUMENT_ROOT"] | /www/htdocs
_SERVER["HTTP_ACCEPT"] | */*
_SERVER["HTTP_ACCEPT_ENCODING"] | gzip, deflate
_SERVER["HTTP_ACCEPT_LANGUAGE"] | da
_SERVER["HTTP_CONNECTION"] | Keep-Alive
_SERVER["HTTP_COOKIE"] | test_script_cookie=Cookie+Value%21
_SERVER["HTTP_HOST"] | 192.168.230.3
_SERVER["HTTP_REFERER"] | http://192.168.230.3/typo3/32/typo3_src-3.6.0RC1/misc/phpcheck/
_SERVER["HTTP_USER_AGENT"] | Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)
_SERVER["PATH"] | /sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin
_SERVER["REDIRECT_QUERY_STRING"] | arg1,arg2,arg3&p1=parameter1&p2[key]=0f03
_SERVER["REDIRECT_STATUS"] | 200
_SERVER["REDIRECT_URL"] | /typo3/32/typo3_src-3.6.0RC1/misc/phpcheck/index.php
_SERVER["REMOTE_ADDR"] | 192.168.230.1
_SERVER["REMOTE_PORT"] | 3054
_SERVER["SCRIPT_FILENAME"] | /www/htdocs/typo3/32/typo3_src-3.6.0RC1/misc/phpcheck/index.php
_SERVER["SERVER_ADDR"] | 192.168.230.3
_SERVER["SERVER_ADMIN"] | root@T3dev
_SERVER["SERVER_NAME"] | 192.168.58.3
_SERVER["SERVER_PORT"] | 80
_SERVER["SERVER_SIGNATURE"] | <ADDRESS>Apache/1.3.27 Server at 192.168.58.3 Port 80</ADDRESS>
_SERVER["SERVER_SOFTWARE"] | Apache/1.3.27 (Unix) mod_gzip/1.3.19.1a PHP/4.2.3
_SERVER["GATEWAY_INTERFACE"] | CGI/1.1
_SERVER["SERVER_PROTOCOL"] | HTTP/1.1
_SERVER["REQUEST_METHOD"] | GET
_SERVER["QUERY_STRING"] | arg1,arg2,arg3&p1=parameter1&p2[key]=0f03
_SERVER["REQUEST_URI"] | /typo3/32/typo3_src-3.6.0RC1/misc/phpcheck/index.php?arg1,arg2,arg3&p1=parameter1&p2[key]=0f03
_SERVER["SCRIPT_NAME"] | /typo3/32/typo3_src-3.6.0RC1/misc/phpcheck/index.php
_SERVER["PATH_TRANSLATED"] | /www/htdocs/typo3/32/typo3_src-3.6.0RC1/misc/phpcheck/index.php
_SERVER["PHP_SELF"] | /typo3/32/typo3_src-3.6.0RC1/misc/phpcheck/index.php

## PHP License

This program is free software; you can redistribute it and/or modify it under the terms of the PHP License as published by the PHP Group and included in the distribution in the file: LICENSE

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

If you did not receive a copy of the PHP license, or have any questions about PHP licensing, please contact license@php.net.