| px | top | add code | search | signup | login | help |
<?php
echo "Remote Address: ", $_SERVER['REMOTE_ADDR']; // displays the remote ip address.
echo "<br />"; // html tag break line which is included inside the php code.
echo "Server Address: ", $_SERVER['SERVER_ADDR']; // displays the server ip address.
?>
<?php
echo "Remote Address: ", getenv("REMOTE_ADDR"); // displays the remote ip address.
echo "<br />"; // html tag break line which is included inside the php code.
echo "Server Address: ", $serverip = getenv("SERVER_ADDR"); // displays the server ip address.
?>
<?php
echo "Remote Address: ", $_SERVER['REMOTE_ADDR']; // displays the remote ip address.
echo "<br />"; // html tag break line which is included inside the php code.
echo "Server Address: ", $_SERVER['SERVER_ADDR']; // displays the server ip address.
?>
<?php
echo "Remote Address: ", getenv("REMOTE_ADDR"); // displays the remote ip address.
echo "<br />"; // html tag break line which is included inside the php code.
echo "Server Address: ", $serverip = getenv("SERVER_ADDR"); // displays the server ip address.
?>
Comments or questions?
PX is running PHP 5.2.11
Thanks to Miranda Productions for hosting and bandwidth.
Use of any code from PX is at your own risk.