Tell me how to use 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 else can take the data?
|
3 answers
<?php printr($_SERVER); ?>
And then you will understand.
- I agree $ _SERVER ['REMOTE_ADDR'] // IP address $ _SERVER ['HTTP_USER_AGENT'] // UserAgent => browser But "printr ($ _ SERVER)" will output everything transmitted by the user! - pro
|
$_SERVER['REMOTE_ADDR'] // IP адрес $_SERVER['HTTP_USER_AGENT'] // UserAgent => браузер
|
Exhaustive information:
$ _SERVER superglobal array
|