Network54 Tech Tips
How to display a visitor's IP address
Time: March 11 05:31pm


To display a visitor's IP address (to them) using PHP,
just add this line of code where you'd like the IP address to be displayed on your page:
Your IP Address: <?echo $REMOTE_ADDR ?>
Make sure you escape the PHP script before adding that line of code. It will show as this:
Your IP Address: 38.107.191.99

To display a visitor's IP address using JavaScript (most likely your choice for Network54 forums),
just go to
THIS WEB SITE
and follow the directions there:

[ Network 54 Tech Tips ] [ Adding a POST button ] [ Adding Content to Different Pages ]
[ Adding snow for the holidays }
[ PHP Redirect ] [ HTML Redirect ] [ Embed Forum in a Frame ] [ Smiley Generator ]
[ Using Frames with your forum ] [ Using Inline Frames with your forum ] [ Adding Image Maps to your forum ]
[ Adding images to your forum ] [ How to display a visitor's IP address ] [ How to Add Links to your forum ]
[ Adding a Marquee - (Scrolling Text Box) ] [ How to add Simple Scripts ] [ How to add Sound to your Forum ]
[ Adding a Sticky Message ] [ Adding Tables ] [ Adding Votelet Links ]
[ Browser Issues ] [ AOL Issues ]
[ How to post pictures ] [ How to post a link ]



If you came from a direct link, use the "Back Button".
If you came from a signature link, use "Close This Window".

OZ Website Services Website Services

Valid HTML 4.01 Transitional