How to get users ip address?

Status
Not open for further replies.

conboi

New Member
Messages
22
Reaction score
0
Points
0
hi

my site is on stoli server and i am using php script (

$ip=$_SERVER['REMOTE_ADDR']; ) to detect visitors ip address,it was working perfectly till yesterday but from today its not working then i tried


$ip=@$REMOTE_ADDR; and $ip = getenv('REMOTE_ADDR'); but none are working.Can anyone tell me whats happening? and how can i solve my problem?


---------- Post added at 01:16 PM ---------- Previous post was at 12:54 PM ----------

now its working with this ($ip=@$REMOTE_ADDR; )

Problem solved.
 
Status
Not open for further replies.
Top