Page 1 of 1

Show A Visitors IP Address Using PHP

PostPosted: Tue May 31, 2016 2:08 pm
by Server Tony
You can use this script to show a visitor the their IP address for information, or as a deterrent to people trying to do mischief.

Code: Select all
echo "The IP Address ".$ip." has been saved.";

This script will provide a result similar to this:

The IP Address XXX.XXX.XXX.XXX has been saved.