View Full Version : What's code to show ip of visitor?
tleftye
20-10-2005, 07:52 PM
Hey , till now I tried a code but it will only work on a freewebs page :s.
I'm looking for the html code that shows visitors ip on all hosts.
Can any1 help?
tleftye
21-10-2005, 03:36 PM
can no1 help? :s I think some1 already used this on his/her site so plzz :p
nelly
21-10-2005, 03:40 PM
its php i think check http://www.phpfreaks.com/ out
splintercell!
21-10-2005, 03:42 PM
I think you might be able to get a javascript version but im not sure.. the php version is
<?php echo $_SERVER['REMOTE_ADDR']; ?>
tleftye
21-10-2005, 04:00 PM
splinter the code you gave me I just need to enter in the html page and It will show visitors ip?
You'll need to have a host which supports PHP for the code splinter gave you to work.
tleftye
21-10-2005, 04:04 PM
I have a host which support php but If i add code to a page saved as .html , It won't show up but I want to put the visitors ip into another page and that page is made in html.. so how i fix this?
Save the page with that code inside it as a .php
tleftye
21-10-2005, 04:08 PM
but the html codes can stay in it?
Yes they can, just save the page as .php
tleftye
21-10-2005, 04:10 PM
Ok thankz it's working ;)
Want to hide these adverts? Register an account for free!
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.