Is it possible to resolve domain names to an IP address with PHP?
Posted
by Rob
on Stack Overflow
See other posts from Stack Overflow
or by Rob
Published on 2010-05-03T23:05:49Z
Indexed on
2010/05/03
23:08 UTC
Read the original article
Hit count: 172
php
Well, very simple question. So that's good news for you, I guess.
More thorough explanation:
I have a PHP script allowing me to add urls to a database. I want the script to resolve the url to an IP address as well, to store that, too. However, some of the URLs are like this:
http://111.111.111.111/~example/index.php
So it also needs to work with that.
I'm not SURE that this is possible, but it only makes sense it would be.
So: Is it possible, and if so, how?
© Stack Overflow or respective owner