Your Public IP Address:
64.64.xxx.xxx
This is a PHP $_SERVER global variables available to most Linux web server. To write a code to discover your public IP address is simple, this is an example.<?php echo $_SERVER['REMOTE_ADDR'] ?>
Cut and paste this code, save as ipaddress.php, and upload this to your web hosting.
To know more about PHP $_SERVER, please visit http://php.net/manual/en/reserved.variables.server.php
0 Comments