•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the PHP section within the Web Development category of DaniWeb, a massive community of 402,473 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,939 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our PHP advertiser: Lunarpages PHP Web Hosting
Views: 5776 | Replies: 3
$url=$_POST['url'];
$ip = gethostbyname($url);
$long1 = ip2long($ip)
if ($long1 == -1 || $long1 == FALSE)
{ echo 'Invalid IP, please try again';
}
else {
print $url;
echo $ip ?>
bu this code i get ip address but i need the country name aslo with this ip address. is thers any function to get country?
thanks
$ip = gethostbyname($url);
$long1 = ip2long($ip)
if ($long1 == -1 || $long1 == FALSE)
{ echo 'Invalid IP, please try again';
}
else {
print $url;
echo $ip ?>
bu this code i get ip address but i need the country name aslo with this ip address. is thers any function to get country?
thanks
•
•
•
•
•
•
•
•
DaniWeb PHP Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Similar Threads
- windows xp user needs to know how to find deleted history (Windows Software)
- Intermittent internet connection is driving me nuts (Networking Hardware Configuration)
- 2 computers (win 98 & xp) connected with switch, no internet on win98 computer (Networking Hardware Configuration)
- IP address lookup.... (Network Security)
- Print Server / VPN (Networking Hardware Configuration)
- user input and search (Java)
- Microsoft IE Offline Pop-ups (Web Browsers)
Other Threads in the PHP Forum
- Previous Thread: Sending Form
- Next Thread: ho to change date and time format to insert into database?



Threaded Mode