php_configuration.php
Code (php)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<?php
echo "Hostname: ". @php_uname(n) ."<br>";
if (function_exists( 'shell_exec' )) {
echo "Hostname: ". @gethostbyname(trim(`hostname`)) . "<br>";
} else {
echo "Server IP: ". $_SERVER['SERVER_ADDR'] . "<br>";
}
echo "Platform: ". @php_uname(s) ." ". @php_uname(r) ." ". @php_uname(v) ."<br>";
echo "Architecture: ". @php_uname(m) ."<br>";
echo "Username: ". get_current_user () ." ( UiD: ". getmyuid() .", GiD: ". getmygid() ." )<br>";
echo "Current path: ". getcwd () ."<br>";
echo "Document root: ".$_SERVER['DOCUMENT_ROOT']."<br>";
echo "Server type: ". $_SERVER['SERVER_SOFTWARE'] . "<br>";
echo "Server admin: ". $_SERVER['SERVER_ADMIN'] . "<br>";
echo "Server signature: ". $_SERVER['SERVER_SIGNATURE'] ."<br>";
echo "Server protocol: ". $_SERVER['SERVER_PROTOCOL'] ."<br>";
echo "Server mode: ". $_SERVER['GATEWAY_INTERFACE'] ."<br>";
echo "Hostname: ". @php_uname(n) ."<br>";
if (function_exists( 'shell_exec' )) {
echo "Hostname: ". @gethostbyname(trim(`hostname`)) . "<br>";
} else {
echo "Server IP: ". $_SERVER['SERVER_ADDR'] . "<br>";
}
echo "Platform: ". @php_uname(s) ." ". @php_uname(r) ." ". @php_uname(v) ."<br>";
echo "Architecture: ". @php_uname(m) ."<br>";
echo "Username: ". get_current_user () ." ( UiD: ". getmyuid() .", GiD: ". getmygid() ." )<br>";
echo "Current path: ". getcwd () ."<br>";
echo "Document root: ".$_SERVER['DOCUMENT_ROOT']."<br>";
echo "Server type: ". $_SERVER['SERVER_SOFTWARE'] . "<br>";
echo "Server admin: ". $_SERVER['SERVER_ADMIN'] . "<br>";
echo "Server signature: ". $_SERVER['SERVER_SIGNATURE'] ."<br>";
echo "Server protocol: ". $_SERVER['SERVER_PROTOCOL'] ."<br>";
echo "Server mode: ". $_SERVER['GATEWAY_INTERFACE'] ."<br>";