8 lines
206 B
PHP
8 lines
206 B
PHP
|
<?php
|
||
|
$client_ip = $_SERVER['REMOTE_ADDR'];
|
||
|
$client_hostname = gethostbyaddr($_SERVER['REMOTE_ADDR']);
|
||
|
|
||
|
echo "<p>IP address: <b>$client_ip</b></p>";
|
||
|
echo "<p>Hostname: <b>$client_hostname</b></p>";
|
||
|
?>
|