PHP - Domain to IP

TexasGuy

New Member
I current have a system which works like this:Insert IP and it will post the IP to another .php page. However, when I try post http://google.com it does not turn the domain into a IP.How would I do that? E.g. when a user inserts http://google.com or any domain it will auto resolve the IP.I know the function gethostbyadd, I dont know how to structure it out e.g. Forms, table, post data.Thanks if any can help.
 
Back
Top