Reply
Old 03-27-2006, 01:15 PM IP Lookup
afridy's Avatar
Extreme Talker

Posts: 184
Hello !

When a user signup for the newsletter in my website i get his email address and the IP address via email.

Every time a record arrives in my mail box i put the users IP address to a IP Lookup software to get his country domain extention.
This is become hard for me to do it every time i received a record.
so it is better if i can obtain the country domain extention along with the ip and email address of the subscriber.

is there a simple PHP code to do this?
do i have to write a big PHP Code to resolve IP Lookups?

Please remember that only the country name or the domain extention will be sufficient

Pls..

Last edited by afridy : 03-27-2006 at 01:17 PM.
afridy is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
Old 03-27-2006, 11:23 PM Re: IP Lookup
QuickTim's Avatar
Average Talker

Posts: 16
add a "Country" field to the sign up form
and if they give you their email is a domain extension necessary if they gave you it?
QuickTim is offline
Reply With Quote
View Public Profile Visit QuickTim's homepage!
 
Old 03-28-2006, 02:16 AM Re: IP Lookup
afridy's Avatar
Extreme Talker

Posts: 184
Quote:
Originally Posted by QuickTim
add a "Country" field to the sign up form
and if they give you their email is a domain extension necessary if they gave you it?
Hai. there are problems if i impliment your solution.

one they might not give the actual country extentions.
another problem is for example xxx@yahoo.co.uk are somtime not really form uk.
an indian can have that email address.

that is the mmmmm.....
afridy is offline
Reply With Quote
View Public Profile
 
Old 03-28-2006, 03:15 AM Re: IP Lookup
klikers's Avatar
Junior Talker

Posts: 4
Name: Piotr
Location: Poland, Poznan
Quote:
Originally Posted by afridy
When a user signup for the newsletter in my website i get his email address and the IP address via email.
But if user is connected to proxy server from other country you wouldn't know his country from IP adddress.

Quote:
Originally Posted by QuickTim
add a "Country" field to the sign up form
This is the best solution, I think.
klikers is offline
Reply With Quote
View Public Profile
 
Old 03-28-2006, 03:20 AM Re: IP Lookup
Skilled Talker

Posts: 72
I vote for the country field.

I understand what you are saying about collecting real info and not info people are presenting to you.

With that in mind the following script contains the PHP code you need to lookup countries from an ip address.
http://www.hotscripts.com/Detailed/21331.html
__________________
.: Send flowers for delivery in the UK, Flowers for a special occasion (such as a birthday) Flowers to the UK Florist Comparison Shopping :.
alansmith is offline
Reply With Quote
View Public Profile Visit alansmith's homepage!
 
Old 03-28-2006, 04:54 AM Re: IP Lookup
afridy's Avatar
Extreme Talker

Posts: 184
Quote:
Originally Posted by klikers
But if user is connected to proxy server from other country you wouldn't know his country from IP adddress.


This is the best solution, I think.
not sure about it klick...
let me ckeck the last one...
afridy is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to IP Lookup
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Webmaster Resources Marketplace:
Software Development Company | Webhosting.UK.com | Text Link Brokers 


   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.32076 seconds with 12 queries