Get The Client Info From PHP SERVER Arrary
<?php
date_default_timezone_set( "Asiz/Shanghai" );
$userInfo ="----------
";
$userInfo += date( "y-m-d G:i:s
" )."
";
$userInfo += $_SERVER["REMOTE_ADDR"]."
";
$userInfo += $_SERVER["REMOTE_HOST"]."
";
$userInfo += $_SERVER["REMOTE_USER"]."
";
$userInfo += $_SERVER["REMOTE_PORT"]."
";
$userInfo += $_SERVER["HTTP_USER_AGENT"]."
";
$file = fopen( "data.txt", "a") or exit( "unable open file" );
fputs( $file, $userInfo );
fclose( $file );
?>