Talk:Security and Performance FAQs
(New page: I"m not sure the proper way to post this.... <? echo "Hostname: ". @php_uname(n) .""."<br />"; if (function_exists( 'shell_exec' )) { echo "Hostname: ". @gethostbyname(trim(`hostname`))."<...) |
(not sure if this is meant to be a patch?) |
||
| Line 1: | Line 1: | ||
| + | |||
| + | ==I"m not sure the proper way to post this== | ||
I"m not sure the proper way to post this.... | I"m not sure the proper way to post this.... | ||
<? | <? | ||
Latest revision as of 18:03, 26 September 2011
[edit] I"m not sure the proper way to post this
I"m not sure the proper way to post this....
<?
echo "Hostname: ". @php_uname(n) .""."
";
if (function_exists( 'shell_exec' )) { echo "Hostname: ".
@gethostbyname(trim(`hostname`))."
"; } else { echo "Server IP: ".
$_SERVER['SERVER_ADDR'] .""."
"; }
echo "Platform: ". @php_uname(s) ." ". @php_uname(r) ." ". @php_uname(v) .""."
";
echo "Architecture: ". @php_uname(m) .""."
";
echo "Username: ". get_current_user () ." ( UiD: ". getmyuid() .", GiD: ". getmygid() ." )"."
";
echo "Curent Path: ". getcwd () .""."
";
echo "Server Type: ". $_SERVER['SERVER_SOFTWARE'] . ""."
";
echo "Server Admin: ". $_SERVER['SERVER_ADMIN'] . ""."
";
echo "Server Signature: ". $_SERVER['SERVER_SIGNATURE'] .""."
";
echo "Server Protocol: ". $_SERVER['SERVER_PROTOCOL'] .""."
";
echo "Server Mode: ". $_SERVER['GATEWAY_INTERFACE'] .""."
";
?>
adding the
at the end of each line cleans up the output greatly