Checking and displaying the user’s IP with PHP
0Comments
This quick, yet very useful snippet harnesses the power of PHP and it’s superglobals.
<?php $ip = $_SERVER['REMOTE_ADDR']; echo "<p>Your IP address is: <strong>$ip</strong></p>"; ?>