Locating IP of a URL

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
SilverX
Forum Newbie
Posts: 2
Joined: Wed Oct 08, 2008 5:41 pm

Locating IP of a URL

Post by SilverX »

Hey All, ive recently started my final year of my degree and thought of a wonderful application to build but in order to do it i will need to find the IP of a website that has been entered by the User.

note: dont reply with just $_SERVER['REQUEST_URI'] , if thats your answer then read my question again please.

Im not trying to locate the IP of the server inwhich the file originates, im tryin to find the IP of the address entered by a user. the link below gives a good example of what im trying to attempt , any help would be apreciated.

http://www.selfseo.com/find_ip_address_of_a_website.php
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Re: Locating IP of a URL

Post by pickle »

Look into the network functions, specifically dns_get_record().
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
SilverX
Forum Newbie
Posts: 2
Joined: Wed Oct 08, 2008 5:41 pm

Re: Locating IP of a URL

Post by SilverX »

thanks so much, 1 step closer.
Post Reply