300+ free video programming tutorials ― Learn for free!

PHP Tutorial - #45 - Getting a Visitors' IP Address

Category: PHP - Author: Karl Hadwen

Home > PHP > PHP Tutorial - #45 - Getting a Visitors' IP Address

Did you find this video helpful? If so, why not subscribe!? ? http://bit.ly/CognitiveSurge

Getting a visitors' IP address can be really useful to store in our database for tracking, or just testing purposes. I tend to store a user's IP address in the database just to track where exactly they're coming from and to store their session data. In this video I'll be showing you how to use $_SERVER["REMOTE_ADDR"] to get the user's IP address from the TCP stack. It's not always that accurate as somebody could be using a proxy server.

Like the Cognitive Surge Facebook page
https://www.facebook.com/cognitivesurge

Follow me on Twitter (Feel free to tweet me questions!)
https://twitter.com/karlhadwen

Join the Cognitive Surge Subreddit
https://www.reddit.com/r/CognitiveSurge

Follow me on Instagram
https://instagram.com/karlhadwen

Follow me on Goodreads
https://goodreads.com/karlhadwen