Sometimes you want to know the IP address of your visitors. Here is the function in PHP:
echo $_SERVER['REMOTE_ADDR'];
Just add this line to where ever you want.
Here is your IP address: (too nosy, huh?)
You are visiting from : 38.103.63.60