I need to get the IP address of a domain by the domain name.
Can it be done, and in that case, how can I do it?
You can use this code:
<?php
$ip = gethostbyname('www.site.com');
echo $ip;
?>
Or, you could operate it dynamically...
<?php
$url = $_GET['url'];
$ip = gethostbyname($url);
echo $ip;
?>