Hey,
Many people ask on forums how to show someone’s IP address, just use this code:
- Code: Select all
<?php
echo "Your IP: $_SERVER[’REMOTE_ADDR’]";
?>
Very Simple.
PS Lot’s of sites use $REMOTE_ADDR but they should take a look in manual on register_globals
Greg
This work is licensed under a Creative Commons License





