Index: misc/phpcheck/reference.html =================================================================== --- misc/phpcheck/reference.html (revision 7861) +++ misc/phpcheck/reference.html (working copy) @@ -1,562 +0,0 @@ - - - - -phpinfo() -

t3lib_div::getIndpEnv()

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

HTTP_HOST192.168.230.3
TYPO3_HOST_ONLY192.168.230.3
TYPO3_PORT
PATH_INFO
QUERY_STRINGarg1,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_REFERERhttp://192.168.230.3/typo3/32/typo3_src-3.6.0RC1/misc/phpcheck/
TYPO3_REQUEST_HOSThttp://192.168.230.3
TYPO3_REQUEST_URLhttp://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_SCRIPThttp://192.168.230.3/typo3/32/typo3_src-3.6.0RC1/misc/phpcheck/index.php
TYPO3_REQUEST_DIRhttp://192.168.230.3/typo3/32/typo3_src-3.6.0RC1/misc/phpcheck/
TYPO3_SITE_URLhttp://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_ADDR192.168.230.1
REMOTE_HOST
HTTP_USER_AGENTMozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)
HTTP_ACCEPT_LANGUAGEda
PHP_OSLinux
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()

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Keygetenv()HTTP_SERVER_VARS_SERVERHTTP_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_ADDR192.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_HOST192.168.230.3 192.168.230.3 192.168.230.3   
HTTP_USER_AGENTMozilla/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_ENCODINGgzip, deflate gzip, deflate gzip, deflate   
HTTP_REFERERhttp://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_STRINGarg1,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:
WA13CGIWindows / Apache 1.3.x / CGI
WA2CGIWindows / Apache 2.x / CGI
WA13ISAPIWindows / Apache 1.3.x / ISAPI-module
WA2ISAPIWindows / Apache 2.x / ISAPI-module
WISS_CGIWindows / ISS / CGI
WISS_ISAPIWindows / ISS / ISAPI-module
MA13MODMac (Darwin) / Apache 1.3.x / Module
LA13CGILinux / Apache 1.3.x / CGI
LA2CGILinux / Apache 2.x / CGI
LA13MODLinux / Apache 1.3.x / Module
LA2MODLinux / Apache 2.x / Module
- - -

Go to this page again (PATH_INFO).
- -
- - -
- -

PHP Version 4.2.3

-

- - - - - - - - - -
SystemLinux T3dev 2.4.19-16mdk #1 Fri Sep 20 18:15:05 CEST 2002 i686 unknown unknown GNU/Linux
Build DateJan 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 APIApache
Virtual Directory Supportdisabled
Configuration File (php.ini) Path/usr/local/Zend/etc/php.ini
Debug Buildno
Thread Safetydisabled

- - -
-Zend logo -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 -

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
DirectiveLocal ValueMaster Value
allow_call_time_pass_reference
OffOff
allow_url_fopen
11
always_populate_raw_post_data
00
arg_separator.input
&&
arg_separator.output
&&
asp_tags
OffOff
auto_append_file
no valueno value
auto_prepend_file
no valueno value
browscap
no valueno value
default_charset
no valueno value
default_mimetype
text/htmltext/html
define_syslog_variables
OffOff
disable_functions
no valueno value
display_errors
OnOn
display_startup_errors
OffOff
doc_root
no valueno value
enable_dl
OnOn
error_append_string
no valueno value
error_log
no valueno value
error_prepend_string
no valueno value
error_reporting
20472047
expose_php
OnOn
extension_dir
././
file_uploads
11
gpc_order
GPCGPC
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
OnOn
ignore_user_abort
OffOff
implicit_flush
OffOff
include_path
.:/usr/local/lib/php.:/usr/local/lib/php
log_errors
OnOn
magic_quotes_gpc
OffOff
magic_quotes_runtime
OffOff
magic_quotes_sybase
OffOff
max_execution_time
6060
open_basedir
/www/htdocs/typo3/32//www/htdocs/typo3/32/
output_buffering
40964096
output_handler
no valueno value
phpa
11
phpa.cache_dir
/tmp/tmp
phpa.cache_file_prune_period
1h1h
phpa.cache_file_ttl
1d1d
phpa.enable_php_memory_bug_workaround
00
phpa.file_perms
400400
phpa.ignore_dirs
no valueno value
phpa.ignore_files
no valueno value
phpa.lock_threshold0
1010
phpa.lock_threshold1
1010
phpa.shm_group
no valueno value
phpa.shm_ignore_dirs
no valueno value
phpa.shm_ignore_files
no valueno value
phpa.shm_key
0x0C0DEB000x0C0DEB00
phpa.shm_max_processes
512512
phpa.shm_perms
666666
phpa.shm_release_at_exit
11
phpa.shm_size
3232
phpa.shm_stats_check_period
5m5m
phpa.shm_ttl
12h12h
phpa.shm_user
no valueno value
phpa.tweaks
11
post_max_size
8M8M
precision
1414
register_argc_argv
OffOff
register_globals
OffOff
safe_mode
OnOn
safe_mode_exec_dir
/www/htdocs/smexec//www/htdocs/smexec/
safe_mode_gid
OffOff
safe_mode_include_dir
no valueno value
sendmail_from
me@localhost.comme@localhost.com
sendmail_path
/usr/sbin/sendmail -t -i /usr/sbin/sendmail -t -i
short_open_tag
OffOff
SMTP
localhostlocalhost
sql.safe_mode
OffOff
track_errors
OffOff
unserialize_callback_func
no valueno value
upload_max_filesize
2M2M
upload_tmp_dir
no valueno value
user_dir
no valueno value
variables_order
GPCSGPCS
xmlrpc_error_number
00
xmlrpc_errors
OffOff
y2k_compliance
OnOn

-

xml

- - - - -
XML Supportactive
XML Namespace Supportactive
EXPAT Version1.95.2

-

wddx

- - - -
WDDX Supportenabled
WDDX Session Serializerenabled

-

standard

- - - - -
Regex LibraryBundled library enabled
Dynamic Library Supportenabled
Path to sendmail/usr/sbin/sendmail -t -i

- - - - - - - - - - -
DirectiveLocal ValueMaster Value
assert.active
11
assert.bail
00
assert.callback
no valueno value
assert.quiet_eval
00
assert.warning
11
safe_mode_allowed_env_vars
PHP_PHP_
safe_mode_protected_env_vars
LD_LIBRARY_PATHLD_LIBRARY_PATH
url_rewriter.tags
a=href,area=href,frame=src,input=src,form=fakeentrya=href,area=href,frame=src,input=src,form=fakeentry

-

session

- - -
Session Supportenabled

- - - - - - - - - - - - - - - - - - - - -
DirectiveLocal ValueMaster Value
session.auto_start
OffOff
session.cache_expire
180180
session.cache_limiter
nocachenocache
session.cookie_domain
no valueno value
session.cookie_lifetime
00
session.cookie_path
//
session.cookie_secure
OffOff
session.entropy_file
no valueno value
session.entropy_length
00
session.gc_maxlifetime
14401440
session.gc_probability
11
session.name
PHPSESSIDPHPSESSID
session.referer_check
no valueno value
session.save_handler
filesfiles
session.save_path
/tmp/tmp
session.serialize_handler
phpphp
session.use_cookies
OnOn
session.use_trans_sid
00

-

posix

- - -
Revision$Revision$

-

pdf

- - - - -
PDF Supportenabled
PDFlib GmbH Version4.0.1
Revision$Revision$

-

pcre

- - - -
PCRE (Perl Compatible Regular Expressions) Supportenabled
PCRE Library Version3.4 22-Aug-2000

-

mysql

- - - - - - - - - -
MySQL Supportenabled
Active Persistent Links0
Active Links0
Client API version3.23.39
MYSQL_MODULE_TYPEbuiltin
MYSQL_SOCKET/tmp/mysql.sock
MYSQL_INCLUDE 
MYSQL_LIBS 

- - - - - - - - - - -
DirectiveLocal ValueMaster Value
mysql.allow_persistent
OnOn
mysql.default_host
no valueno value
mysql.default_password
no valueno value
mysql.default_port
no valueno value
mysql.default_socket
no valueno value
mysql.default_user
no valueno value
mysql.max_links
UnlimitedUnlimited
mysql.max_persistent
UnlimitedUnlimited

-

gd

- - - - - - - - - -
GD Supportenabled
GD Version1.6.2 or higher
FreeType Supportenabled
FreeType Linkagewith TTF library
T1Lib Supportenabled
GIF Read Supportenabled
GIF Create Supportenabled
WBMP Supportenabled

-

ctype

- - -
ctype functionsenabled (experimental)

-

zlib

- - - - - -
ZLib Supportenabled
'zlib:' fopen wrapperenabled
Compiled Version1.1.4
Linked Version1.1.4

- - - -
DirectiveLocal ValueMaster Value
zlib.output_compression
OffOff

-

apache

- - - - - - - - - - - - -
APACHE_INCLUDE 
APACHE_TARGET 
Apache VersionApache/1.3.27
Apache Release10327100
Apache API Version19990320
Hostname:Port192.168.58.3:80
User/Grouphttpd(502)/502
Max RequestsPer Child: 0 - Keep Alive: on - Max Per Connection: 100
TimeoutsConnection: 300 - Keep-Alive: 15
Server Root/www
Loaded Modulesmod_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

- - - - - - -
DirectiveLocal ValueMaster Value
child_terminate
00
engine
11
last_modified
00
xbithack
00

-

Apache Environment

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
VariableValue
DOCUMENT_ROOT/www/htdocs
HTTP_ACCEPT*/*
HTTP_ACCEPT_ENCODINGgzip, deflate
HTTP_ACCEPT_LANGUAGEda
HTTP_CONNECTIONKeep-Alive
HTTP_COOKIEtest_script_cookie=Cookie+Value%21
HTTP_HOST192.168.230.3
HTTP_REFERERhttp://192.168.230.3/typo3/32/typo3_src-3.6.0RC1/misc/phpcheck/
HTTP_USER_AGENTMozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)
PATH/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin
REDIRECT_QUERY_STRINGarg1,arg2,arg3&p1=parameter1&p2[key]=0f03
REDIRECT_STATUS200
REDIRECT_URL/typo3/32/typo3_src-3.6.0RC1/misc/phpcheck/index.php
REMOTE_ADDR192.168.230.1
REMOTE_PORT3054
SCRIPT_FILENAME/www/htdocs/typo3/32/typo3_src-3.6.0RC1/misc/phpcheck/index.php
SERVER_ADDR192.168.230.3
SERVER_ADMINroot@T3dev
SERVER_NAME192.168.58.3
SERVER_PORT80
SERVER_SIGNATURE<ADDRESS>Apache/1.3.27 Server at 192.168.58.3 Port 80</ADDRESS>
SERVER_SOFTWAREApache/1.3.27 (Unix) mod_gzip/1.3.19.1a PHP/4.2.3
GATEWAY_INTERFACECGI/1.1
SERVER_PROTOCOLHTTP/1.1
REQUEST_METHODGET
QUERY_STRINGarg1,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 RequestGET /typo3/32/typo3_src-3.6.0RC1/misc/phpcheck/index.php?arg1,arg2,arg3&p1=parameter1&p2[key]=0f03 HTTP/1.1
Accept*/*
Accept-Encodinggzip, deflate
Accept-Languageda
ConnectionKeep-Alive
Cookietest_script_cookie=Cookie+Value%21
Host192.168.230.3
Refererhttp://192.168.230.3/typo3/32/typo3_src-3.6.0RC1/misc/phpcheck/
User-AgentMozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)
HTTP Response Headers
X-Powered-ByPHP/4.2.3
X-Accelerated-ByPHPA/1.3.3r1
Set-Cookietest_script_cookie=Cookie+Value%21; path=/
Keep-Alivetimeout=15, max=98
ConnectionKeep-Alive
Transfer-Encodingchunked
Content-Typetext/html

-

Additional Modules

- -

-

Environment

- - - - - - - - - - - - - - - - - - - - - - - - - - -
VariableValue
service52
CONSOLE/dev/console
TERMlinux
LOCPATH/etc/locale
INIT_VERSIONsysvinit-2.83
AUTOBOOTYES
res 
PATH/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin
runlevel3
RUNLEVEL3
devfsmount
PWD/
LANGen_US
previousN
PREVLEVELN
out/dev/vc/
SHLVL3
HOME/
BOOT_IMAGElinux
splashyes
nbservices53
LOGO_CONSOLEno
TEXTDOMAINDIR/etc/locale
_/www/bin/httpd

-

PHP Variables

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
VariableValue
_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. -

-

- \ No newline at end of file Index: misc/phpcheck/index.php =================================================================== --- misc/phpcheck/index.php (revision 7861) +++ misc/phpcheck/index.php (working copy) @@ -1,5 +0,0 @@ - \ No newline at end of file Index: misc/phpcheck/incfile.php =================================================================== --- misc/phpcheck/incfile.php (revision 7861) +++ misc/phpcheck/incfile.php (working copy) @@ -1,156 +0,0 @@ -Fix: Open the file misc/phpcheck/incfile.php and remove/out-comment the line that outputs this message!'); -} - -include('../../t3lib/class.t3lib_div.php'); - -SetCookie('test_script_cookie', 'Cookie Value!', 0, t3lib_div::getIndpEnv('TYPO3_SITE_PATH')); - -if (defined('E_DEPRECATED')) { - error_reporting(E_ALL ^ E_NOTICE ^ E_DEPRECATED); -} else { - error_reporting(E_ALL ^ E_NOTICE); -} - -define("TYPO3_OS", stristr(PHP_OS,"win")&&!stristr(PHP_OS,"darwin")?"WIN":""); -/* -define("PATH_thisScript", - TYPO3_OS=="WIN" ? - str_replace('//','/',str_replace('\\','/', $HTTP_SERVER_VARS["PATH_TRANSLATED"]?$HTTP_SERVER_VARS["PATH_TRANSLATED"]:getenv("PATH_TRANSLATED"))) : - (PHP_SAPI=="cgi"?(getenv("PATH_TRANSLATED")?getenv("PATH_TRANSLATED"):getenv("SCRIPT_FILENAME")):$HTTP_SERVER_VARS["PATH_TRANSLATED"]) -); - */ - -define("PATH_thisScript", str_replace('//','/', str_replace('\\','/', PHP_SAPI=="cgi"||PHP_SAPI=="isapi" ? $HTTP_SERVER_VARS["PATH_TRANSLATED"]:$HTTP_SERVER_VARS["SCRIPT_FILENAME"]))); -define('PATH_site', dirname(PATH_thisScript).'/'); - - - -if (count($_GET) || $_SERVER["HTTP_REFERER"]) { - # KOMPENSATED: - echo "

t3lib_div::getIndpEnv()

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

"; - t3lib_div::debug(t3lib_div::getIndpEnv("_ARRAY")); - - t3lib_div::debug(array( - "PHP_OS"=>PHP_OS, - "TYPO3_OS"=>TYPO3_OS, - "PATH_thisScript"=>PATH_thisScript, - "php_sapi_name()" => PHP_SAPI - )); - - - - - ##t3lib_div::debug(parse_url("http://admin:palindrom@192.168.1.4:8080/typo3/32/temp/phpcheck/index.php/arg1/arg2/arg3/index.php?arg1,arg2,arg3&p1=parameter1&p2[key]=value#link1")); - - - echo "

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()

"; - $envTestVars = explode(",","REQUEST_URI,REMOTE_ADDR,REMOTE_HOST,PATH_INFO,SCRIPT_NAME,SCRIPT_FILENAME,HTTP_HOST,HTTP_USER_AGENT,HTTP_ACCEPT_ENCODING,HTTP_REFERER,QUERY_STRING"); - $lines=array(); - $lines[] = ' - Key - getenv() - HTTP_SERVER_VARS - _SERVER - HTTP_ENV_VARS - _ENV - '; - while(list(,$v)=each($envTestVars)) { - $lines[] = ' - '.htmlspecialchars($v).' - '.htmlspecialchars(getenv($v)).'  - '.htmlspecialchars($GLOBALS["HTTP_SERVER_VARS"][$v]).'  - '.htmlspecialchars($GLOBALS["_SERVER"][$v]).'  - '.htmlspecialchars($GLOBALS["HTTP_ENV_VARS"][$v]).'  - '.htmlspecialchars($GLOBALS["_ENV"][$v]).'  - '; - } - echo ''.implode("",$lines).'
'; - - echo ' - - - - -
'.htmlspecialchars('$GLOBALS["HTTP_SERVER_VARS"]["DOCUMENT_ROOT"]').''.htmlspecialchars($GLOBALS["HTTP_SERVER_VARS"]["DOCUMENT_ROOT"]).'
'.htmlspecialchars('$HTTP_SERVER_VARS["PATH_TRANSLATED"]').''.htmlspecialchars($HTTP_SERVER_VARS["PATH_TRANSLATED"]).'
'.htmlspecialchars('$GLOBALS["HTTP_SERVER_VARS"]["REDIRECT_URL"]').''.htmlspecialchars($GLOBALS["HTTP_SERVER_VARS"]["REDIRECT_URL"]).'
'.htmlspecialchars('$GLOBALS["HTTP_SERVER_VARS"]["REQUEST_URI"]').''.htmlspecialchars($GLOBALS["HTTP_SERVER_VARS"]["REQUEST_URI"]).'
'; - - - - echo "Cookie 'test_script_cookie': '".$HTTP_COOKIE_VARS["test_script_cookie"]."'
"; - - - echo '
'; - echo '

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 kasperYYYY@typo3.com with information about 1) which webserver (Apache/ISS), 2) Unix/Windows, 3) CGI or module (ISAPI)
- 2a) You might help us find any differences in your values to this reference example by comparing the values before you send the result (thanks). -
- 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 kasperYYYY@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:
WA13CGIWindows / Apache 1.3.x / CGI
WA2CGIWindows / Apache 2.x / CGI
WA13ISAPIWindows / Apache 1.3.x / ISAPI-module
WA2ISAPIWindows / Apache 2.x / ISAPI-module
WISS_CGIWindows / ISS / CGI
WISS_ISAPIWindows / ISS / ISAPI-module
MA13MODMac (Darwin) / Apache 1.3.x / Module
LA13CGILinux / Apache 1.3.x / CGI
LA2CGILinux / Apache 2.x / CGI
LA13MODLinux / Apache 1.3.x / Module
LA2MODLinux / Apache 2.x / Module
- - -

'; - echo 'Go to this page again (PATH_INFO).
'; - - phpinfo(); -} else { - echo 'Click this link to start the test.
'; -} -?> \ No newline at end of file