1
Get a domain name IP address
Get a domain name IP address with PHP
<?php
if(isset($_POST['submit'])) {
$gethost = $_POST['gethost'];
$gethost = gethostbyname($gethost);
echo $gethost;
} else {
?>
<form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>">
DomainName: <input type="text" name="gethost">
<input type="submit" name="submit" value="Get a domain name IP address">
</form>
<?php } ?>
rated 1 times
(1)
(0)
comments: 0 / hits: 1847
/ 4 years ago, tue, feb 28, 17, 09:40:06
More From
» PHP
Comments
There are no comments for this Snippet yet
Only authorized users can post. Please sign in first, or register a free account