You are here: Re: getting the IP address « HTML « IT news, forums, messages
Re: getting the IP address

Posted by J.O. Aho on 01/18/07 16:39

Jonathan N. Little wrote:
> sachinmehta@gmail.com wrote:
>> hello all,
>>
>> from my blogspot, i have given out links for people to view some other
>> websites.
>> i would like to know if there is an executable or any bit of code which
>> i can use to know the IP addresses of the people who have clicked on
>> those links?
>
> With PHP:
>
> $_SERVER['REMOTE_ADDR']

That won't give the address of the person who clicked a link, just one who
visited the page, better to use a redirect script which checks the remote
address before redirecting them to the url

example of the html-tag to use:
<a href="redirect.php?url=www.example.net">www.example.net</a>

The redirect.php script can be made more advanced and register how many has
selected each link, time, what ever.

--

//Aho

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация