01.
echo
'Joomla JPATH'
;
02.
echo
"<table border=\"1\">"
;
03.
echo
"<tr><td>"
. DS .
"</td><td>DS</td></tr>"
;
04.
echo
"<tr><td>"
. JPATH_ADMINISTRATOR .
"</td><td>JPATH_ADMINISTRATOR</td></tr>"
;
05.
echo
"<tr><td>"
. JPATH_BASE .
"</td><td>JPATH_BASE</td></tr>"
;
06.
echo
"<tr><td>"
. JPATH_CACHE .
"</td><td>JPATH_CACHE</td></tr>"
;
07.
echo
"<tr><td>"
. JPATH_COMPONENT .
"</td><td>JPATH_COMPONENT</td></tr>"
;
08.
echo
"<tr><td>"
. JPATH_COMPONENT_ADMINISTRATOR .
"</td><td>JPATH_COMPONENT_ADMINISTRATOR</td></tr>"
;
09.
echo
"<tr><td>"
. JPATH_COMPONENT_SITE .
"</td><td>JPATH_COMPONENT_SITE</td></tr>"
;
10.
echo
"<tr><td>"
. JPATH_CONFIGURATION .
"</td><td>JPATH_CONFIGURATION</td></tr>"
;
11.
echo
"<tr><td>"
. JPATH_INSTALLATION .
"</td><td>JPATH_INSTALLATION</td></tr>"
;
12.
echo
"<tr><td>"
. JPATH_LIBRARIES .
"</td><td>JPATH_LIBRARIES</td></tr>"
;
13.
echo
"<tr><td>"
. JPATH_PLUGINS .
"</td><td>JPATH_PLUGINS</td></tr>"
;
14.
echo
"<tr><td>"
. JPATH_ROOT .
"</td><td>JPATH_ROOT</td></tr>"
;
15.
echo
"<tr><td>"
. JPATH_SITE .
"</td><td>JPATH_SITE</td></tr>"
;
16.
echo
"<tr><td>"
. JPATH_THEMES .
"</td><td>JPATH_THEMES</td></tr>"
;
17.
echo
"<tr><td>"
. JPATH_XMLRPC .
"</td><td>JPATH_XMLRPC</td></tr>"
;
18.
echo
"</table>"
;
19.
20.
echo
'PHP $_SERVER'
;
21.
echo
' <!-- By jeffwk on http://www.php.net/manual/en/reserved.variables.server.php#91080 -->'
;
22.
echo
"<table border=\"1\">"
;
23.
echo
"<tr><td>"
.
$_SERVER
[
'argv'
] .
"</td><td>argv</td></tr>"
;
24.
echo
"<tr><td>"
.
$_SERVER
[
'argc'
] .
"</td><td>argc</td></tr>"
;
25.
echo
"<tr><td>"
.
$_SERVER
[
'GATEWAY_INTERFACE'
] .
"</td><td>GATEWAY_INTERFACE</td></tr>"
;
26.
echo
"<tr><td>"
.
$_SERVER
[
'SERVER_ADDR'
] .
"</td><td>SERVER_ADDR</td></tr>"
;
27.
echo
"<tr><td>"
.
$_SERVER
[
'SERVER_NAME'
] .
"</td><td>SERVER_NAME</td></tr>"
;
28.
echo
"<tr><td>"
.
$_SERVER
[
'SERVER_SOFTWARE'
] .
"</td><td>SERVER_SOFTWARE</td></tr>"
;
29.
echo
"<tr><td>"
.
$_SERVER
[
'SERVER_PROTOCOL'
] .
"</td><td>SERVER_PROTOCOL</td></tr>"
;
30.
echo
"<tr><td>"
.
$_SERVER
[
'REQUEST_METHOD'
] .
"</td><td>REQUEST_METHOD</td></tr>"
;
31.
echo
"<tr><td>"
.
$_SERVER
[
'REQUEST_TIME'
] .
"</td><td>REQUEST_TIME</td></tr>"
;
32.
echo
"<tr><td>"
.
$_SERVER
[
'QUERY_STRING'
] .
"</td><td>QUERY_STRING</td></tr>"
;
33.
echo
"<tr><td>"
.
$_SERVER
[
'DOCUMENT_ROOT'
] .
"</td><td>DOCUMENT_ROOT</td></tr>"
;
34.
echo
"<tr><td>"
.
$_SERVER
[
'HTTP_ACCEPT'
] .
"</td><td>HTTP_ACCEPT</td></tr>"
;
35.
echo
"<tr><td>"
.
$_SERVER
[
'HTTP_ACCEPT_CHARSET'
] .
"</td><td>HTTP_ACCEPT_CHARSET</td></tr>"
;
36.
echo
"<tr><td>"
.
$_SERVER
[
'HTTP_ACCEPT_ENCODING'
] .
"</td><td>HTTP_ACCEPT_ENCODING</td></tr>"
;
37.
echo
"<tr><td>"
.
$_SERVER
[
'HTTP_ACCEPT_LANGUAGE'
] .
"</td><td>HTTP_ACCEPT_LANGUAGE</td></tr>"
;
38.
echo
"<tr><td>"
.
$_SERVER
[
'HTTP_CONNECTION'
] .
"</td><td>HTTP_CONNECTION</td></tr>"
;
39.
echo
"<tr><td>"
.
$_SERVER
[
'HTTP_HOST'
] .
"</td><td>HTTP_HOST</td></tr>"
;
40.
echo
"<tr><td>"
.
$_SERVER
[
'HTTP_REFERER'
] .
"</td><td>HTTP_REFERER</td></tr>"
;
41.
echo
"<tr><td>"
.
$_SERVER
[
'HTTP_USER_AGENT'
] .
"</td><td>HTTP_USER_AGENT</td></tr>"
;
42.
echo
"<tr><td>"
.
$_SERVER
[
'HTTPS'
] .
"</td><td>HTTPS</td></tr>"
;
43.
echo
"<tr><td>"
.
$_SERVER
[
'REMOTE_ADDR'
] .
"</td><td>REMOTE_ADDR</td></tr>"
;
44.
echo
"<tr><td>"
.
$_SERVER
[
'REMOTE_HOST'
] .
"</td><td>REMOTE_HOST</td></tr>"
;
45.
echo
"<tr><td>"
.
$_SERVER
[
'REMOTE_PORT'
] .
"</td><td>REMOTE_PORT</td></tr>"
;
46.
echo
"<tr><td>"
.
$_SERVER
[
'SCRIPT_FILENAME'
] .
"</td><td>SCRIPT_FILENAME</td></tr>"
;
47.
echo
"<tr><td>"
.
$_SERVER
[
'SERVER_ADMIN'
] .
"</td><td>SERVER_ADMIN</td></tr>"
;
48.
echo
"<tr><td>"
.
$_SERVER
[
'SERVER_PORT'
] .
"</td><td>SERVER_PORT</td></tr>"
;
49.
echo
"<tr><td>"
.
$_SERVER
[
'SERVER_SIGNATURE'
] .
"</td><td>SERVER_SIGNATURE</td></tr>"
;
50.
echo
"<tr><td>"
.
$_SERVER
[
'PATH_TRANSLATED'
] .
"</td><td>PATH_TRANSLATED</td></tr>"
;
51.
echo
"<tr><td>"
.
$_SERVER
[
'SCRIPT_NAME'
] .
"</td><td>SCRIPT_NAME</td></tr>"
;
52.
echo
"<tr><td>"
.
$_SERVER
[
'REQUEST_URI'
] .
"</td><td>REQUEST_URI</td></tr>"
;
53.
echo
"<tr><td>"
.
$_SERVER
[
'PHP_AUTH_DIGEST'
] .
"</td><td>PHP_AUTH_DIGEST</td></tr>"
;
54.
echo
"<tr><td>"
.
$_SERVER
[
'PHP_AUTH_USER'
] .
"</td><td>PHP_AUTH_USER</td></tr>"
;
55.
echo
"<tr><td>"
.
$_SERVER
[
'PHP_AUTH_PW'
] .
"</td><td>PHP_AUTH_PW</td></tr>"
;
56.
echo
"<tr><td>"
.
$_SERVER
[
'AUTH_TYPE'
] .
"</td><td>AUTH_TYPE</td></tr>"
;
57.
echo
"</table>"
;
fonte : http://fititnt.org/joomla-jpath-e-php-server.html