User data

Tell me how, in PHP, to display (Echo or Print) user data, such as
IP, browser, connection speed. I do not understand, these are variables and what values ​​are taken from the user. What other data can be taken?


Answer 1, authority 100%

<?php 
    printr($_SERVER);
?>

And then you will understand.


Answer 2, authority 50%

$_SERVER['REMOTE_ADDR'] // IP 
$_SERVER['HTTP_USER_AGENT'] // UserAgent => 

Answer 3, authority 50%

Comprehensive information:
$_SERVER Superglobal

Leave a reply

Please enter your comment!
Please enter your name here