sbridge Posted January 23, 2006 Posted January 23, 2006 Hi again... I'm in search once again for another script or something that will allow me to display a user's ip address on my website... kind of a tracker and displays it on my website.... I searched for some code, but no luck.... Basically it would read on a page: "For security purposes, your IP address will be logged: 225.258.264.356" And this would actually record the person's ip address into a file on my server?? Anyone know of anything close to it out there? If not at least something that would display their IP on the page... Thanks again!!! Quote
MikeJ Posted January 23, 2006 Posted January 23, 2006 You can use the PHP variable $REMOTE_ADDR (which pulls it from the HTTP headers) to display the remote users IP address. For example: ><?php echo $REMOTE_ADDR; ?> You could always write that to a file too. Quote
sbridge Posted January 23, 2006 Author Posted January 23, 2006 You can use the PHP variable $REMOTE_ADDR (which pulls it from the HTTP headers) to display the remote users IP address. For example: ><?php echo $REMOTE_ADDR; ?> You could always write that to a file too. you rock! thanks! Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.