MyBB Community Forums

Full Version: code ip
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
what code should I use to find the ip of a user and do read the page?

example

[Image: 4f81b1987854dc96e6ba2e03b741109c.png]
$_SERVER['REMOTE_ADDR'];

Will get the IP of a user.
does not work
Where are you trying to add it?
ninth, now it works, you can create a code that stores the IP you have visited a particular page?
You can use this:
$ip = get_ip();
Yes, but I want you to save in a txt file then I can see myself chwe just me.
or you can view it by yourself using raw access logs on your cpanel.
up...