Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_php thread: Get the client country and his ISP name


Message #1 by "Johnatan Ben Anat" <benanat@a...> on Sat, 8 Mar 2003 18:18:00
hey,

seems like an ambitious challenge :) well you can use PHP to do what you 
want. as far as recognizing the country or region the user lives in is 
besed on ip addressing. for example one country can be using class C 
network ranging say from 162.-.-.- to 174.-.-.- etc. you need to find out 
how do these really work (ip addressing). if you are looking for some 
resources regarding PHP and NETWORKING check out www.php.net, there's 
also very good book - PROFESSIONAL PHP 4 BY wrox - there you should find 
a chapter about networking....

php has some functions that will help you out (networking): 
gethostbyname(),
gethostbynamel(),
gethostbyaddr(),
getprotobyname(),
getprotobynumber(),
getservbyname(),
getservbyport(),


hope that helped... 

voytech  

  Return to Index