Jump to content

how do i get an IP address from a visitor?


Nxt

Recommended Posts

Hey!

 

Okay, I made this basic script that was support to obtain the visitor's IP address. I thought if you did this it would:

 

$ip = $_SERVER['HTTP_CLIENT_IP'];

 

 

I have it echo it out.

 

echo("Hello, user-you're IP is :".$ip);

 

 

however it displays:

Hello, User-you're IP is:

 

and nothing else after that. What am I doing that?

 

Help would be greatly appreciated! Thanks!

 

-NxT

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.