Is it possible to resolve domain names to an IP address with PHP?
- by Rob
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?