Page 1 of 1

Locating IP of a URL

Posted: Wed Oct 08, 2008 5:49 pm
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

Re: Locating IP of a URL

Posted: Wed Oct 08, 2008 5:55 pm
by pickle
Look into the network functions, specifically dns_get_record().

Re: Locating IP of a URL

Posted: Wed Oct 08, 2008 6:16 pm
by SilverX
thanks so much, 1 step closer.