protected Tag

PHP Sheet

27 Apr 2011, Posted by BoB in All Posts, Website Talk

How to display a user's IP address within a web page: <?php echo $_SERVER['REMOTE_ADDR']; ?> (Paste above code in your PHP file) How to display information only to an IP address of your choosing: Find your IP address at ip.TRPunlimited.com <?php if ($_SERVER['REMOTE_ADDR'] == your.ip.address.here) {?> (Paste above code at the...