Jump to content

Recommended Posts

Posted

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!!!

:)

Posted

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.

Posted
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!

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...