1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
<?php $output_port=$_SERVER['REMOTE_PORT']; print_r($output_port); //51008 $output_agent=$_SERVER['HTTP_USER_AGENT']; print_r($output_agent); //Mozilla/5.0 (Windows NT 6.1; WOW64; rv:26.0) Gecko/20100101 Firefox/26.0 $output_method=$_SERVER['REQUEST_METHOD']; //GET print_r($output_method); $output_host=$_SERVER['HTTP_HOST']; //localhost print_r($output_host); $output_adr=$_SERVER['REMOTE_ADDR']; //127.0.0.1 print_r($output_adr); $output_self=$_SERVER['PHP_SELF']; // /test/test.php print_r($output_self); ?> |